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

Issue 2943033003: [PresentationSevice] Use PresentationConnection to send messages from (Closed)

Created:
3 years, 6 months ago by imcheng
Modified:
3 years, 6 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, darin (slow to review), mfoltz+watch_chromium.org, blink-reviews-api_chromium.org, qsr+mojo_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[PresentationSevice] Use PresentationConnection to send messages from MR to renderer. - Use BrowserPresentationConnectionProxy to send messages to the renderer PresentationConnection object. - Move the RouteMessageObserver inheritance to the proxy. - This allows us to unify the messaging codepath for offscreen and non-offscreen presentations, and to remove the messaging APIs from PresentationService / PresentationServiceClient. BUG=687011 Review-Url: https://codereview.chromium.org/2943033003 Cr-Commit-Position: refs/heads/master@{#481265} Committed: https://chromium.googlesource.com/chromium/src/+/e086a06b613955abb1293eecef0d4c0cda0244f7

Patch Set 1 : . #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : LOG -> DLOG #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -238 lines) Patch
M chrome/browser/media/router/browser_presentation_connection_proxy.h View 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/media/router/browser_presentation_connection_proxy.cc View 1 2 2 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/media/router/browser_presentation_connection_proxy_unittest.cc View 1 6 chunks +57 lines, -21 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.h View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 11 chunks +7 lines, -111 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc View 2 chunks +41 lines, -1 line 0 comments Download
M chrome/browser/media/router/test_helper.h View 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/media/router/test_helper.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 2 chunks +0 lines, -22 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/browser/presentation_service_delegate.h View 1 chunk +0 lines, -11 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 3 chunks +1 line, -38 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher_unittest.cc View 3 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/presentation.mojom View 3 chunks +8 lines, -14 lines 0 comments Download

Messages

Total messages: 33 (24 generated)
imcheng
Bin: PTAL, thanks!
3 years, 6 months ago (2017-06-16 20:05:33 UTC) #12
zhaobin
lgtm May add a unit test for BrowserPresentationConnectionProxy::OnMessagesReceived (or later) Could you please make sure ...
3 years, 6 months ago (2017-06-19 23:36:48 UTC) #13
imcheng
On 2017/06/19 23:36:48, zhaobin wrote: > lgtm > > May add a unit test for ...
3 years, 6 months ago (2017-06-20 17:36:55 UTC) #14
imcheng
avi, PTAL at content/public/browser/presentation_service_delegate.h dcheng, PTAL at third_party/WebKit/public/platform/modules/presentation/presentation.mojom thanks!
3 years, 6 months ago (2017-06-20 17:39:21 UTC) #16
dcheng
ipc lgtm https://codereview.chromium.org/2943033003/diff/60001/chrome/browser/media/router/browser_presentation_connection_proxy.cc File chrome/browser/media/router/browser_presentation_connection_proxy.cc (right): https://codereview.chromium.org/2943033003/diff/60001/chrome/browser/media/router/browser_presentation_connection_proxy.cc#newcode19 chrome/browser/media/router/browser_presentation_connection_proxy.cc:19: LOG_IF(ERROR, !success) Nit: DLOG? Not sure that ...
3 years, 6 months ago (2017-06-20 21:35:34 UTC) #21
imcheng
Avi: friendly ping to review presentation_service_delegate.h thanks! https://codereview.chromium.org/2943033003/diff/60001/chrome/browser/media/router/browser_presentation_connection_proxy.cc File chrome/browser/media/router/browser_presentation_connection_proxy.cc (right): https://codereview.chromium.org/2943033003/diff/60001/chrome/browser/media/router/browser_presentation_connection_proxy.cc#newcode19 chrome/browser/media/router/browser_presentation_connection_proxy.cc:19: LOG_IF(ERROR, !success) ...
3 years, 6 months ago (2017-06-21 17:00:14 UTC) #24
Avi (use Gerrit)
On 2017/06/21 17:00:14, imcheng wrote: > Avi: friendly ping to review presentation_service_delegate.h thanks! > > ...
3 years, 6 months ago (2017-06-21 17:30:04 UTC) #25
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/2943033003/80001
3 years, 6 months ago (2017-06-21 18:55:42 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 19:04:21 UTC) #33
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/e086a06b613955abb1293eecef0d...

Powered by Google App Engine
This is Rietveld 408576698