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

Issue 906113002: Support listening for available screens for multiple presentation urls in the same frame (Closed)

Created:
5 years, 10 months ago by imcheng (use chromium acct)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -16 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/presentation/presentation_service_impl.h View 1 1 chunk +119 lines, -11 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 1 chunk +175 lines, -4 lines 0 comments Download
A content/browser/presentation/presentation_service_impl_unittest.cc View 1 1 chunk +299 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
imcheng
Avi: please review render_frame_host_impl.cc. Anton: please review everything. All of the changes here are from ...
5 years, 10 months ago (2015-02-09 07:29:05 UTC) #2
whywhat
lgtm with some nits https://codereview.chromium.org/906113002/diff/1/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/906113002/diff/1/content/browser/presentation/presentation_service_impl.cc#newcode28 content/browser/presentation/presentation_service_impl.cc:28: DCHECK(render_frame_host_); Move the DCHECKs before ...
5 years, 10 months ago (2015-02-09 10:17:08 UTC) #3
whywhat
https://codereview.chromium.org/906113002/diff/1/content/browser/presentation/presentation_service_impl_unittest.cc File content/browser/presentation/presentation_service_impl_unittest.cc (right): https://codereview.chromium.org/906113002/diff/1/content/browser/presentation/presentation_service_impl_unittest.cc#newcode53 content/browser/presentation/presentation_service_impl_unittest.cc:53: EXPECT_CALL(mock_delegate_, AddObserver(_)).Times(1); Also I'm a supporter of having most/all ...
5 years, 10 months ago (2015-02-09 12:56:55 UTC) #4
Avi (use Gerrit)
LGTM
5 years, 10 months ago (2015-02-09 14:19:39 UTC) #5
imcheng
https://codereview.chromium.org/906113002/diff/1/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/906113002/diff/1/content/browser/presentation/presentation_service_impl.cc#newcode28 content/browser/presentation/presentation_service_impl.cc:28: DCHECK(render_frame_host_); On 2015/02/09 10:17:07, whywhat wrote: > Move the ...
5 years, 10 months ago (2015-02-09 22:33:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/906113002/20001
5 years, 10 months ago (2015-02-09 22:47:19 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-10 00:02:49 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ec17a20355dbc3b05e2133c0112c332167b63ce7 Cr-Commit-Position: refs/heads/master@{#315442}
5 years, 10 months ago (2015-02-10 00:03:28 UTC) #11
jiayl
5 years, 10 months ago (2015-02-10 00:19:11 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/908073002/ by jiayl@chromium.org.

The reason for reverting is: Bot failure:
http://build.chromium.org/p/chromium.webkit/builders/GPU%20Linux%20Builder%20....

Powered by Google App Engine
This is Rietveld 408576698