Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Issue 2343013002: [Presentation API] (MR side) 1-UA: notify receiver page when receiver connection becomes available (Closed)

Created:
4 years, 3 months ago by zhaobin
Modified:
4 years, 2 months ago
Reviewers:
mark a. foltz, imcheng
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, media-router+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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
Unified diffs Side-by-side diffs Delta from patch set Stats (+1194 lines, -8 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 chunks +8 lines, -0 lines 6 comments Download
M chrome/browser/extensions/api/tab_capture/offscreen_tab.cc View 1 3 chunks +11 lines, -4 lines 8 comments Download
M chrome/browser/media/router/BUILD.gn View 1 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/media/router/offscreen_presentation_manager.h View 1 1 chunk +165 lines, -0 lines 16 comments Download
A chrome/browser/media/router/offscreen_presentation_manager.cc View 1 1 chunk +107 lines, -0 lines 6 comments Download
A chrome/browser/media/router/offscreen_presentation_manager_factory.h View 1 chunk +43 lines, -0 lines 4 comments Download
A chrome/browser/media/router/offscreen_presentation_manager_factory.cc View 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/media/router/offscreen_presentation_manager_factory_unittest.cc View 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/media/router/offscreen_presentation_manager_unittest.cc View 1 1 chunk +290 lines, -0 lines 30 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.h View 1 3 chunks +10 lines, -1 line 8 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 10 chunks +43 lines, -2 lines 4 comments Download
A chrome/browser/media/router/receiver_presentation_service_delegate_impl.h View 1 1 chunk +139 lines, -0 lines 0 comments Download
A chrome/browser/media/router/receiver_presentation_service_delegate_impl.cc View 1 1 chunk +171 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.h View 1 4 chunks +17 lines, -1 line 12 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 5 chunks +40 lines, -0 lines 4 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/presentation_service_delegate.h View 1 2 chunks +40 lines, -0 lines 10 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 13 (4 generated)
zhaobin
4 years, 3 months ago (2016-09-15 23:36:01 UTC) #1
zhaobin
4 years, 3 months ago (2016-09-15 23:38:18 UTC) #3
imcheng
I reviewed a majority of the files but had some concerns about the overall design. ...
4 years, 3 months ago (2016-09-19 23:01:17 UTC) #7
zhaobin
Change implementation of OffscreenPresentationManager: - recevier_ becomes a callback - controllers_ only contains controllers registered ...
4 years, 3 months ago (2016-09-23 17:18:19 UTC) #8
imcheng
This is looking better. The messaging part made more sense after reading your follow up ...
4 years, 2 months ago (2016-09-28 07:28:37 UTC) #9
zhaobin
Hi Derek, Thanks a lot for the comments! I have addressed most of them in ...
4 years, 2 months ago (2016-09-29 17:20:45 UTC) #10
mark a. foltz
Sending a few comments now. It looks like the current PS doesn't reflect changes to ...
4 years, 2 months ago (2016-10-04 00:32:20 UTC) #11
zhaobin
Hi Mark, Sorry for the confusion. This CL is obsolete and I have addressed Derek's ...
4 years, 2 months ago (2016-10-04 02:43:00 UTC) #12
mark a. foltz
4 years, 2 months ago (2016-10-04 16:10:17 UTC) #13
Ah okay, I'll pick up the review there.  Maybe close this issue then?

Powered by Google App Engine
This is Rietveld 408576698