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

Issue 2471883002: [Presentation API] (1st) (1-UA) Add is_offscreen_presentation attribute to MediaRouter (Closed)

Created:
4 years, 1 month ago by zhaobin
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, media-router+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Add is_offscreen_presentation attribute to MediaRouter (Splitting of https://codereview.chromium.org/2379703002/) To support 1-UA mode, we need to tell if a route is created for 1-UA or not. - add is_offscreen_presentation attribute to MediaRouter (attribute set in extension) - pass route.is_offscreen_presentation from MR extension to MR We are going to use route.is_offscreen_presentation in PresentationServiceDelegateImpl. Component Extension side change has been submitted (https://critique.corp.google.com/#review/136174920) 1-UA Design Doc (use chromium.org account): https://docs.google.com/document/d/1XM3jhMJTQyhEC5PDAAJFNIaKh6UUEihqZDz_ztEe4Co/edit#heading=h.hadpx5oi0gml BUG=525660 Committed: https://crrev.com/72f858dd3c39b90f2c18591dfab290475c1e0ab1 Cr-Commit-Position: refs/heads/master@{#433244}

Patch Set 1 #

Total comments: 8

Patch Set 2 : resolve code review comments from Mark #

Total comments: 8

Patch Set 3 : resolve code review comments from Mark #

Patch Set 4 : rebase with master #

Patch Set 5 : remove is_offscreen from PresentationSessionInfo class #

Total comments: 1

Patch Set 6 : merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -29 lines) Patch
M chrome/browser/media/router/create_presentation_connection_request.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/router/create_presentation_connection_request.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/media/router/create_presentation_connection_request_unittest.cc View 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/media/router/media_route.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_route.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/media/router/media_router_dialog_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router.mojom View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_type_converters.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_type_converters_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 4 4 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (17 generated)
zhaobin
It is part of 1-UA messaging change. Split it into smaller pieces for easier review ...
4 years, 1 month ago (2016-11-03 17:33:33 UTC) #7
mark a. foltz
Overall looks good with minor comments. Please update test coverage in: media_route_unittest.cc presentation_service_delegate_impl_unittest.cc presentation_service_impl_unittest.cc https://codereview.chromium.org/2471883002/diff/20001/chrome/browser/media/router/create_presentation_connection_request.h ...
4 years, 1 month ago (2016-11-03 18:32:05 UTC) #8
mark a. foltz
One side comment (from a design/architecture POV). In my opinion, long term we should try ...
4 years, 1 month ago (2016-11-03 18:42:17 UTC) #9
zhaobin
https://codereview.chromium.org/2471883002/diff/20001/chrome/browser/media/router/create_presentation_connection_request.h File chrome/browser/media/router/create_presentation_connection_request.h (right): https://codereview.chromium.org/2471883002/diff/20001/chrome/browser/media/router/create_presentation_connection_request.h#newcode63 chrome/browser/media/router/create_presentation_connection_request.h:63: const MediaRoute& route); On 2016/11/03 18:32:05, mark a. foltz ...
4 years, 1 month ago (2016-11-03 23:00:47 UTC) #10
imcheng
lgtm
4 years, 1 month ago (2016-11-07 21:43:00 UTC) #12
mark a. foltz
Mostly minor comments; but would definitely prefer a solution that doesn't require plumbing a new ...
4 years, 1 month ago (2016-11-09 19:28:23 UTC) #13
zhaobin
Resolving minor comments. Thinking about getting rid of the is_offscreen flag: For the is_offscreen flag ...
4 years, 1 month ago (2016-11-11 18:41:51 UTC) #14
zhaobin
Removed is_offscreen attribute from PresentationSessionInfo class (get rid of plumbing is_offscreen into content).
4 years, 1 month ago (2016-11-16 02:14:28 UTC) #15
imcheng
Still lgtm. Looking at https://codereview.chromium.org/2379703002/, the PresentationConnection wiring is initiated from the controller PresentationDispatcher. Without ...
4 years, 1 month ago (2016-11-17 19:42:23 UTC) #16
mark a. foltz
lgtm
4 years, 1 month ago (2016-11-17 21:05:42 UTC) #17
mark a. foltz
Before committing: - Please update patch description to match current design. - You'll need ipc/OWNERS ...
4 years, 1 month ago (2016-11-17 21:06:48 UTC) #18
mark a. foltz
On 2016/11/17 at 21:06:48, mark a. foltz wrote: > Before committing: > > - Please ...
4 years, 1 month ago (2016-11-17 21:07:08 UTC) #19
zhaobin
+dcheng@ to review mojo related changes.
4 years, 1 month ago (2016-11-17 22:45:02 UTC) #22
dcheng
mojom lgtm https://codereview.chromium.org/2471883002/diff/100001/chrome/browser/media/router/mojo/media_router_type_converters.cc File chrome/browser/media/router/mojo/media_router_type_converters.cc (right): https://codereview.chromium.org/2471883002/diff/100001/chrome/browser/media/router/mojo/media_router_type_converters.cc#newcode101 chrome/browser/media/router/mojo/media_router_type_converters.cc:101: media_route->set_offscreen_presentation(input->is_offscreen_presentation); FWIW, type converters are deprecated (I ...
4 years, 1 month ago (2016-11-17 23:30:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2471883002/120001
4 years, 1 month ago (2016-11-18 18:23:02 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 1 month ago (2016-11-18 18:36:06 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 18:37:53 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/72f858dd3c39b90f2c18591dfab290475c1e0ab1
Cr-Commit-Position: refs/heads/master@{#433244}

Powered by Google App Engine
This is Rietveld 408576698