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

Issue 1173753003: [Media Router] Implement JoinRoute + update CreateRoute API. (Closed)

Created:
5 years, 6 months ago by imcheng (use chromium acct)
Modified:
5 years, 6 months ago
Reviewers:
mark a. foltz, Devlin
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, media-router+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, wjia+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Implement JoinRoute + update CreateRoute API. CreateRoute: - The CreateRoute API from MediaRouter no longer accepts a presentation id. The browser will always generate one for the consumer, which will be present in the route created (if the provider chooses not to override the generated id) - In addition, CreateRoute now accepts two new arguments - origin and tab_id. These are used for enforcing same-origin and/or same-tab joining policies and are optional. - Added the 3 aforementioned arguments to mojom CreateRoute API. - For DEFAULT mode CreateRoute (e.g., Presentation API or browser initiated Presentation), origin and tab_id are derived from the URL of presentation's originating frame and tab. JoinRoute: - JoinRoute takes (source, presentation_id, origin, tab_id). origin and tab_id are used for same-tab/origin join policy. Optional. - PresentationServiceDelegateImpl invokes JoinRoute() directly for incoming Presentation API joinSession() requests. BUG=461815 Committed: https://crrev.com/a3ee1d154f303e2cfe443c454bb2bd651f3cf321 Cr-Commit-Position: refs/heads/master@{#334474}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : Addressed mfoltz's comments #

Patch Set 4 : Compile / misc fix #

Patch Set 5 : Rebase #

Patch Set 6 : Compile fix #

Patch Set 7 : Compile fix again #

Patch Set 8 : Compile fix again x2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -83 lines) Patch
A chrome/browser/media/router/create_session_request_unittest.cc View 1 2 3 4 5 6 7 1 chunk +106 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.h View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.mojom View 1 2 3 4 1 chunk +25 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.h View 1 2 3 4 2 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.cc View 1 2 3 4 5 chunks +64 lines, -19 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl_unittest.cc View 1 2 3 4 3 chunks +72 lines, -14 lines 0 comments Download
M chrome/browser/media/router/mock_media_router.h View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.h View 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 4 chunks +43 lines, -12 lines 0 comments Download
M chrome/browser/media/router/test_helper.h View 1 2 3 4 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 5 3 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 4 2 chunks +21 lines, -20 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
imcheng (use chromium acct)
mark: PTAL at everything. Devlin: PTAL at extensions/renderer/resources/media_router_bindings.js Thanks.
5 years, 6 months ago (2015-06-10 18:36:59 UTC) #5
Devlin
extensions lgtm
5 years, 6 months ago (2015-06-10 19:26:24 UTC) #6
mark a. foltz
Let's check the semantics we actually need for CreateRoute/JoinRoute and figure out if these parameters ...
5 years, 6 months ago (2015-06-10 23:18:51 UTC) #7
imcheng (use chromium acct)
PTAL https://codereview.chromium.org/1173753003/diff/80001/chrome/browser/media/router/create_session_request_unittest.cc File chrome/browser/media/router/create_session_request_unittest.cc (right): https://codereview.chromium.org/1173753003/diff/80001/chrome/browser/media/router/create_session_request_unittest.cc#newcode59 chrome/browser/media/router/create_session_request_unittest.cc:59: TEST_F(CreateSessionRequestTest, Callbacks) { On 2015/06/10 23:18:51, mark a. ...
5 years, 6 months ago (2015-06-11 22:49:13 UTC) #8
mark a. foltz
lgtm
5 years, 6 months ago (2015-06-12 19:43:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1173753003/190001
5 years, 6 months ago (2015-06-15 20:17:36 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:190001)
5 years, 6 months ago (2015-06-15 22:19:01 UTC) #13
commit-bot: I haz the power
5 years, 6 months ago (2015-06-15 22:19:52 UTC) #14
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a3ee1d154f303e2cfe443c454bb2bd651f3cf321
Cr-Commit-Position: refs/heads/master@{#334474}

Powered by Google App Engine
This is Rietveld 408576698