Description[Presentation API] (MR side) 1-UA: notify receiver page when receiver connection becomes available
Following files are directly ported from https://codereview.chromium.org/1314413005/
chrome/browser/chrome_content_browser_client.cc
chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
chrome/browser/media/router/offscreen_presentation_manager_factory.cc
chrome/browser/media/router/offscreen_presentation_manager_factory.h
chrome/browser/media/router/offscreen_presentation_manager_factory_unittest.cc
Following files are mostly the same as https://codereview.chromium.org/1314413005/, with some functions removed:
chrome/browser/media/router/receiver_presentation_service_delegate_impl.cc
chrome/browser/media/router/receiver_presentation_service_delegate_impl.h
New changes in this CL:
- Add RegisterController/Receiver() functions to OffscreenPresentationManager class and PSDImpl.
- For controller PSImpl, call registerController() when session starts; call unregisterController() when connection is closed.
- For receiver PSImpl, call registerReceiver() when receiver frame is created and presentation.receiver() is accessed; call unregisterReceiver() when receiver frame is destroyed.
BUG=525660
Patch Set 1 #
Total comments: 24
Patch Set 2 : resolve code review comments from Derek #
Total comments: 108
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 13 (4 generated)
|