It is part of 1-UA messaging change. Split it into smaller pieces for easier
review and landing.
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 ...
One side comment (from a design/architecture POV). In my opinion, long term we
should try to get rid of plumbing is_offscreen into content. It's really a
browser implementation detail whether the connection is implemented by a
connection to an offscreen presentation or a connection to an external device.
However since we have two different mechanisms in content/ for talking to them
via PresentationService we'll need this flag. Eventually I'd like to hide this
detail in the browser (by having the MRPM implement the other side of the
PresentationConnection), but this is a significant architectural change.
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
Description was changed from ========== [Presentation API] Add is_offscreen_presentation attribute to MediaRouter (Splitting of https://codereview.chromium.org/2379703002/) ...
4 years, 1 month ago
(2016-11-04 23:03:05 UTC)
#11
Description was changed from
==========
[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)
- add is_offscreen attribute to PresentationSessionInfo
- pass route.is_offscreen_presentation from MR extension to MR
- use route.is_offscreen_presentation when creating PresentationSessionInfo
Component Extension side change has been submitted
(https://critique.corp.google.com/#review/136174920)
BUG=525660
==========
to
==========
[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)
- add is_offscreen attribute to PresentationSessionInfo
- pass route.is_offscreen_presentation from MR extension to MR
- use route.is_offscreen_presentation when creating PresentationSessionInfo
Component Extension side change has been submitted
(https://critique.corp.google.com/#review/136174920)
BUG=525660
==========
imcheng
lgtm
4 years, 1 month ago
(2016-11-07 21:43:00 UTC)
#12
lgtm
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
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
Resolving minor comments. Thinking about getting rid of the is_offscreen flag:
For the is_offscreen flag in presentation.mojom, it seems that we need to keep
it till we can have a unified PresentationConnectionProxy impl for both 1-UA and
2-UA.
For is_offscreen_presentation flag in media_router.mojom, is it possible to
determine if a presentation is offscreen or not in controller render frame's
PSImpl::StartSession (e.g. solely based on presentation_url, no MR, OPM, MRP, or
receiver frame PSImpl are involved). If yes, we can set the flag in PSImpl and
get rid of it in media_router.mojom. If not and only MRP can decide if a
presentation is offscreen or not, we might to keep the flag.
https://codereview.chromium.org/2471883002/diff/40001/chrome/browser/media/ro...
File chrome/browser/media/router/media_route.h (right):
https://codereview.chromium.org/2471883002/diff/40001/chrome/browser/media/ro...
chrome/browser/media/router/media_route.h:83: void
set_is_offscreen_presentation(bool is_offscreen_presentation) {
On 2016/11/09 19:28:22, mark a. foltz wrote:
> Can this be set_offscreen_presentation()?
Done.
https://codereview.chromium.org/2471883002/diff/40001/chrome/browser/media/ro...
chrome/browser/media/router/media_route.h:99: bool incognito_;
On 2016/11/09 19:28:22, mark a. foltz wrote:
> Side comment: Looking at the rest of this object, this should be is_incognito_
> and the getter is_incognito(); my fault :)
>
> Not necessary to fix in this patch at all.
Will do it later in seperate patch.
https://codereview.chromium.org/2471883002/diff/40001/chrome/browser/media/ro...
File chrome/browser/media/router/presentation_service_delegate_impl.cc (right):
https://codereview.chromium.org/2471883002/diff/40001/chrome/browser/media/ro...
chrome/browser/media/router/presentation_service_delegate_impl.cc:734: const
GURL& presentation_url,
On 2016/11/09 19:28:23, mark a. foltz wrote:
> Thanks for doing this; it is necessary for supporting multiple URLs per
request
> :)
Done.
https://codereview.chromium.org/2471883002/diff/40001/chrome/browser/media/ro...
chrome/browser/media/router/presentation_service_delegate_impl.cc:832:
base::Bind(&PresentationServiceDelegateImpl::OnJoinRouteResponse,
On 2016/11/09 19:28:23, mark a. foltz wrote:
> It would be ideal to also include the presentation_id in the arguments bound
to
> the callback so we can verify that the presentation id passed in the result
> matches.
Done.
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
Removed is_offscreen attribute from PresentationSessionInfo class (get rid of
plumbing is_offscreen into content).
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
Still lgtm.
Looking at https://codereview.chromium.org/2379703002/, the
PresentationConnection wiring is initiated from the controller
PresentationDispatcher. Without the offscreen presentation bit on the
PresentationSessionInfo, we will have to rearrange where we start the wiring of
PresentationConnection.
I would still prefer to do it in PresentationServiceDelegate /
OffscreenPresentationManager. This is probably do-able with the refactoring of
non-1UA presentations to use the same PresentationConnection mojo interface. But
I am open to other ideas.
mark a. foltz
lgtm
4 years, 1 month ago
(2016-11-17 21:05:42 UTC)
#17
lgtm
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
Before committing:
- Please update patch description to match current design.
- You'll need ipc/OWNERS approval for the mojom changes. dcheng@ has reviewed
other patches of ours.
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
On 2016/11/17 at 21:06:48, mark a. foltz wrote:
> Before committing:
>
> - Please update patch description to match current design.
> - You'll need ipc/OWNERS approval for the mojom changes. dcheng@ has reviewed
other patches of ours.
Also, you might want to put a design doc link in the patch description.
zhaobin
Description was changed from ========== [Presentation API] Add is_offscreen_presentation attribute to MediaRouter (Splitting of https://codereview.chromium.org/2379703002/) ...
4 years, 1 month ago
(2016-11-17 22:42:40 UTC)
#20
Description was changed from
==========
[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)
- add is_offscreen attribute to PresentationSessionInfo
- pass route.is_offscreen_presentation from MR extension to MR
- use route.is_offscreen_presentation when creating PresentationSessionInfo
Component Extension side change has been submitted
(https://critique.corp.google.com/#review/136174920)
BUG=525660
==========
to
==========
[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_ztEe4...
BUG=525660
==========
Description was changed from ========== [Presentation API] Add is_offscreen_presentation attribute to MediaRouter (Splitting of https://codereview.chromium.org/2379703002/) ...
4 years, 1 month ago
(2016-11-18 18:36:04 UTC)
#31
4 years, 1 month ago
(2016-11-18 18:36:06 UTC)
#32
Message was sent while issue was closed.
Committed patchset #6 (id:120001)
commit-bot: I haz the power
Description was changed from ========== [Presentation API] Add is_offscreen_presentation attribute to MediaRouter (Splitting of https://codereview.chromium.org/2379703002/) ...
4 years, 1 month ago
(2016-11-18 18:37:51 UTC)
#33
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
Reviewers: mark a. foltz, imcheng, dcheng
Base URL:
Comments: 17