Chromium Code Reviews
DescriptionSupport listening for available screens for multiple
Presentation URLs on a per frame basis.
This is done by associating PresentationServiceImpl
with the RenderFrameHost. When Presentation API
requests are passed to PresentationServiceImpl, it
will delegate to the embedder's Media Router along
with the frame id via the PresentationServiceDelegate
interface.
Each PresentationServiceImpl also maintains a hash
map of Presentation URLs currently registered to
"context" objects. These objects wait for both result
and renderer (i.e. callback) to both be ready before
sending the result back to renderer /
PresentationDispatcher.
Furthermore, PresentationServiceImpl listens for
changes to the RenderFrameHost. If an out of page
navigation occurred or if RenderFrameHost is
being destroyed, all current Presentation URLs
are unregistered.
Also added unit tests for PresentationSerivceImpl.
BUG=412331
Committed: https://crrev.com/ec17a20355dbc3b05e2133c0112c332167b63ce7
Cr-Commit-Position: refs/heads/master@{#315442}
Patch Set 1 #
Total comments: 12
Patch Set 2 : Addressed Anton's comments #
Messages
Total messages: 12 (3 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||