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

Issue 795193003: Introduce MojoRendererFactory::ServiceProvider. (Closed)

Created:
6 years ago by xhwang
Modified:
6 years ago
Reviewers:
jamesr
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce MojoRendererFactory::ServiceProvider. Currently MojoRendererFactory takes a ServiceProviderPtr. This works in HTMLViewer. However, in RenderFrameImpl, we need to use GetServiceRegistry()->ConnectToRemoteService() to get the MediaRenderer service. This CL makes it possible to use MojoRendererFactory in both places. BUG=431776 Committed: https://crrev.com/bd57385e3c623d0db22159dc686a392f24440d24 Cr-Commit-Position: refs/heads/master@{#308537}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Callback -> Interface per discussion. #

Patch Set 4 : git cl format #

Total comments: 14

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -11 lines) Patch
M media/mojo/services/mojo_renderer_factory.h View 1 2 3 4 2 chunks +17 lines, -3 lines 0 comments Download
M media/mojo/services/mojo_renderer_factory.cc View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M mojo/services/html_viewer/webmediaplayer_factory.cc View 1 2 3 4 2 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
xhwang
PTAL
6 years ago (2014-12-13 00:57:05 UTC) #2
xhwang
https://codereview.chromium.org/795193003/diff/1/mojo/services/html_viewer/webmediaplayer_factory.cc File mojo/services/html_viewer/webmediaplayer_factory.cc (right): https://codereview.chromium.org/795193003/diff/1/mojo/services/html_viewer/webmediaplayer_factory.cc#newcode49 mojo/services/html_viewer/webmediaplayer_factory.cc:49: err, I'll add #if !defined(OS_ANDROID) here...
6 years ago (2014-12-13 01:06:31 UTC) #3
xhwang
https://codereview.chromium.org/795193003/diff/1/mojo/services/html_viewer/webmediaplayer_factory.cc File mojo/services/html_viewer/webmediaplayer_factory.cc (right): https://codereview.chromium.org/795193003/diff/1/mojo/services/html_viewer/webmediaplayer_factory.cc#newcode49 mojo/services/html_viewer/webmediaplayer_factory.cc:49: On 2014/12/13 01:06:31, xhwang wrote: > err, I'll add ...
6 years ago (2014-12-15 19:51:12 UTC) #4
jamesr
Why is this a callback instead of an interface? What is the expected lifetime of ...
6 years ago (2014-12-15 21:14:08 UTC) #5
xhwang
On 2014/12/15 21:14:08, jamesr wrote: > Why is this a callback instead of an interface? ...
6 years ago (2014-12-15 21:35:36 UTC) #6
jamesr
Since it's a factory interface I would expect it to be able to create multiple ...
6 years ago (2014-12-15 21:40:06 UTC) #7
xhwang
On 2014/12/15 21:40:06, jamesr wrote: > Since it's a factory interface I would expect it ...
6 years ago (2014-12-15 22:00:22 UTC) #8
jamesr
On 2014/12/15 22:00:22, xhwang wrote: > On 2014/12/15 21:40:06, jamesr wrote: > > Since it's ...
6 years ago (2014-12-15 22:22:46 UTC) #9
xhwang
On 2014/12/15 22:22:46, jamesr wrote: > On 2014/12/15 22:00:22, xhwang wrote: > > On 2014/12/15 ...
6 years ago (2014-12-15 23:27:35 UTC) #10
xhwang
PTAL again, thanks!
6 years ago (2014-12-16 00:24:09 UTC) #11
jamesr
lgtm https://codereview.chromium.org/795193003/diff/60001/media/mojo/services/mojo_renderer_factory.h File media/mojo/services/mojo_renderer_factory.h (right): https://codereview.chromium.org/795193003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode18 media/mojo/services/mojo_renderer_factory.h:18: class ServiceProvider { comment? https://codereview.chromium.org/795193003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode20 media/mojo/services/mojo_renderer_factory.h:20: ServiceProvider(){}; no ...
6 years ago (2014-12-16 01:47:38 UTC) #12
xhwang
comments addressed
6 years ago (2014-12-16 05:03:56 UTC) #13
xhwang
https://codereview.chromium.org/795193003/diff/60001/media/mojo/services/mojo_renderer_factory.h File media/mojo/services/mojo_renderer_factory.h (right): https://codereview.chromium.org/795193003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode18 media/mojo/services/mojo_renderer_factory.h:18: class ServiceProvider { On 2014/12/16 01:47:37, jamesr wrote: > ...
6 years ago (2014-12-16 05:05:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795193003/80001
6 years ago (2014-12-16 05:45:13 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-12-16 05:58:29 UTC) #17
commit-bot: I haz the power
6 years ago (2014-12-16 05:59:10 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bd57385e3c623d0db22159dc686a392f24440d24
Cr-Commit-Position: refs/heads/master@{#308537}

Powered by Google App Engine
This is Rietveld 408576698