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

Issue 1132903002: [MediaRouter] Add implementation of PresentationServiceDelegate (Closed)

Created:
5 years, 7 months ago by haibinlu
Modified:
5 years, 6 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, media-router+watch_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds presentation_service_delegate_impl, which implements PresentationServiceDelegate to interface with the Chrome Media Router. An instance of this class is associated with a WebContents. In addition to fulfilling Presentation requests, it also provide tab-level information that is required for creating browser-initiated sessions. Renames the media source helper methods. BUG=464226 Committed: https://crrev.com/571a4dfac35342be8d07cff886fb48349f546b36 Cr-Commit-Position: refs/heads/master@{#332320}

Patch Set 1 #

Total comments: 42

Patch Set 2 : #

Patch Set 3 : #

Total comments: 63

Patch Set 4 : #

Total comments: 65

Patch Set 5 : Addresses Derek's comments #

Total comments: 18

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : #

Total comments: 128

Patch Set 9 : Addresses Wez's comments #

Total comments: 22

Patch Set 10 : Addresses Mark's comments #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+989 lines, -58 lines) Patch
M chrome/browser/media/router/media_route_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -13 lines 0 comments Download
M chrome/browser/media/router/media_router.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/media_source_helper.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/media/router/media_source_helper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/media/router/media_source_helper_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -16 lines 0 comments Download
M chrome/browser/media/router/presentation_media_sinks_observer.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/media/router/presentation_service_delegate_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +172 lines, -0 lines 0 comments Download
A chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +516 lines, -0 lines 0 comments Download
A chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +222 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/query_result_manager.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/media_router/query_result_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (5 generated)
haibinlu
5 years, 7 months ago (2015-05-08 20:55:45 UTC) #2
mark a. foltz
To start, please write a proper change description and link a related BUG= with the ...
5 years, 7 months ago (2015-05-08 21:41:08 UTC) #3
haibinlu
On 2015/05/08 21:41:08, mark a. foltz wrote: > To start, please write a proper change ...
5 years, 7 months ago (2015-05-08 22:41:46 UTC) #4
mark a. foltz
Thanks, I had a hard time wrapping my head around the patch since there are ...
5 years, 7 months ago (2015-05-11 07:36:22 UTC) #5
haibinlu
PTAL. I will update the unit test if the new design is ok. (1) Why ...
5 years, 7 months ago (2015-05-13 01:40:21 UTC) #6
mark a. foltz
Overall looks good, most comments are minor. Thanks for breaking out helper classes, it's a ...
5 years, 7 months ago (2015-05-14 22:20:47 UTC) #7
haibinlu
https://codereview.chromium.org/1132903002/diff/40001/chrome/browser/media/router/media_router_impl_factory.h File chrome/browser/media/router/media_router_impl_factory.h (right): https://codereview.chromium.org/1132903002/diff/40001/chrome/browser/media/router/media_router_impl_factory.h#newcode10 chrome/browser/media/router/media_router_impl_factory.h:10: #include "chrome/browser/media/router/media_router_impl.h" On 2015/05/14 22:20:44, mfoltz_ooo_until_5-26 wrote: > This ...
5 years, 7 months ago (2015-05-15 23:32:30 UTC) #8
imcheng (use chromium acct)
Did a first pass. Please rebase as there have been some gyp/gn changes. https://codereview.chromium.org/1132903002/diff/60001/chrome/browser/media/router/BUILD.gn File ...
5 years, 7 months ago (2015-05-18 20:54:08 UTC) #10
haibinlu
PTAL https://codereview.chromium.org/1132903002/diff/60001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1132903002/diff/60001/chrome/browser/media/router/BUILD.gn#newcode75 chrome/browser/media/router/BUILD.gn:75: "presentation_service_delegate_impl_unittest.cc", On 2015/05/18 20:54:06, imcheng wrote: > You ...
5 years, 7 months ago (2015-05-18 23:40:48 UTC) #11
imcheng (use chromium acct)
https://codereview.chromium.org/1132903002/diff/60001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/1132903002/diff/60001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode123 chrome/browser/media/router/presentation_service_delegate_impl.cc:123: if (sink_observers_.contains(source.id())) On 2015/05/18 23:40:47, haibinlu wrote: > On ...
5 years, 7 months ago (2015-05-19 20:03:30 UTC) #12
haibinlu
PTAL https://codereview.chromium.org/1132903002/diff/80001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/1132903002/diff/80001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode60 chrome/browser/media/router/presentation_service_delegate_impl.cc:60: explicit PresentationFrame(content::WebContents* web_contents, On 2015/05/19 20:03:29, imcheng wrote: ...
5 years, 7 months ago (2015-05-19 21:14:35 UTC) #13
haibinlu
5 years, 7 months ago (2015-05-19 21:19:59 UTC) #15
imcheng (use chromium acct)
https://codereview.chromium.org/1132903002/diff/100001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/1132903002/diff/100001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode366 chrome/browser/media/router/presentation_service_delegate_impl.cc:366: frame_map_->RegisterPresenationFrame(rfh_id, observer); nit: rfh_id can be inlined https://codereview.chromium.org/1132903002/diff/100001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode372 chrome/browser/media/router/presentation_service_delegate_impl.cc:372: ...
5 years, 7 months ago (2015-05-19 22:00:46 UTC) #16
haibinlu
PTAL https://codereview.chromium.org/1132903002/diff/100001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/1132903002/diff/100001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode366 chrome/browser/media/router/presentation_service_delegate_impl.cc:366: frame_map_->RegisterPresenationFrame(rfh_id, observer); On 2015/05/19 22:00:46, imcheng wrote: > ...
5 years, 7 months ago (2015-05-19 22:20:53 UTC) #17
imcheng (use chromium acct)
lgtm
5 years, 7 months ago (2015-05-20 01:24:05 UTC) #18
haibinlu
5 years, 7 months ago (2015-05-21 17:19:58 UTC) #19
mark a. foltz
Is this ready for external review?
5 years, 7 months ago (2015-05-26 17:43:52 UTC) #20
haibinlu
On 2015/05/26 17:43:52, mark a. foltz wrote: > Is this ready for external review? Yes, ...
5 years, 7 months ago (2015-05-26 18:24:16 UTC) #21
haibinlu
Ping!
5 years, 7 months ago (2015-05-26 21:38:09 UTC) #22
Wez
https://codereview.chromium.org/1132903002/diff/1/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1132903002/diff/1/chrome/browser/media/router/BUILD.gn#newcode54 chrome/browser/media/router/BUILD.gn:54: "presentation_service_delegate_impl.h", Where are the browser and unit-test .ccs added ...
5 years, 7 months ago (2015-05-27 22:37:53 UTC) #23
haibinlu
PTAL Some method names of PresentationServiceDelegate need to be updated (will do in a separate ...
5 years, 6 months ago (2015-05-28 21:44:05 UTC) #24
mark a. foltz
Please update the description to include the renaming of the media source helper methods. MOstly ...
5 years, 6 months ago (2015-06-01 19:18:13 UTC) #25
haibinlu
https://codereview.chromium.org/1132903002/diff/160001/chrome/browser/media/router/media_source_helper.h File chrome/browser/media/router/media_source_helper.h (right): https://codereview.chromium.org/1132903002/diff/160001/chrome/browser/media/router/media_source_helper.h#newcode17 chrome/browser/media/router/media_source_helper.h:17: MediaSource MediaSourceForTab(int tab_id); On 2015/06/01 19:18:12, mark a. foltz ...
5 years, 6 months ago (2015-06-01 21:44:58 UTC) #26
haibinlu
PTAL
5 years, 6 months ago (2015-06-01 21:46:01 UTC) #27
mark a. foltz
lgtm, please rebase before landing. https://codereview.chromium.org/1132903002/diff/160001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/1132903002/diff/160001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode68 chrome/browser/media/router/presentation_service_delegate_impl.cc:68: // Mirror corresponding APIs ...
5 years, 6 months ago (2015-06-02 00:18:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132903002/200001
5 years, 6 months ago (2015-06-02 00:46:59 UTC) #31
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 6 months ago (2015-06-02 01:53:33 UTC) #32
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 01:54:22 UTC) #33
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/571a4dfac35342be8d07cff886fb48349f546b36
Cr-Commit-Position: refs/heads/master@{#332320}

Powered by Google App Engine
This is Rietveld 408576698