• btolsch's avatar
    Add PresentationReceiverWindow for wired screen presentations · 7adfa2d5
    btolsch authored
    This change adds a class which shows a Presentation API receiver page in
    a popup-style window that is started fullscreen on a specific wired
    display.
    
    It also changes the handling of one-off OTR profiles used by
    presentations, which affects this class and offscreen tabs.  Previously,
    offscreen tabs assumed ownership of their OTR profiles.  However, it was
    possible for this to be violated by opening a DevTools window and
    Browser would think that it could destroy the profile.  Additionally,
    there was no handling of the original profile being destroyed, which
    would leave dangling references in the OTR profile.  This has been
    addressed by adding an IndependentOTRProfileManager class, which helps
    both offscreen tabs and PresentationReceiverWindow manage the lifetime
    of these one-off OTR profiles.
    
    Bug: 777654, 786158, 664351, 727487
    Change-Id: I64d032419d341affbdde4ee80b57d45c99648588
    Reviewed-on: https://chromium-review.googlesource.com/742122
    Commit-Queue: Brandon Tolsch <btolsch@chromium.org>
    Reviewed-by: default avatarmark a. foltz <mfoltz@chromium.org>
    Reviewed-by: default avatarDerek Cheng <imcheng@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarYuri Wiitala <miu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#524615}
    7adfa2d5
independent_otr_profile_manager.cc 5.76 KB