Chromium Code Reviews
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 #Messages
Total messages: 14 (6 generated)
|