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

Issue 1230313010: media: Add ServiceFactory mojo interface and implementation. (Closed)

Created:
5 years, 5 months ago by xhwang
Modified:
5 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, Aaron Boodman, nasko+codewatch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin (slow to review), ben+mojo_chromium.org, viettrungluu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add ServiceFactory mojo interface and implementation. ServiceFactory is an interface used to create media services. Services created in one factory instance are isolated from services created in another factory instance. This is used in Chromium to isolate media services for different RenderFrames. BUG=510653 TEST=Plays the same EME test page in 2 tabs. Committed: https://crrev.com/c0299ae3c8a93f9d19d2367e4cc7568231f708bb Cr-Commit-Position: refs/heads/master@{#339780}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix html_viewer and tests #

Total comments: 2

Patch Set 3 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -116 lines) Patch
M components/html_viewer/media_factory.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M components/html_viewer/media_factory.cc View 1 4 chunks +10 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 4 chunks +22 lines, -11 lines 0 comments Download
M media/mojo/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A media/mojo/interfaces/service_factory.mojom View 1 chunk +18 lines, -0 lines 0 comments Download
M media/mojo/services/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/services/media_apptest.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_cdm_factory.h View 2 chunks +6 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_cdm_factory.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.h View 3 chunks +4 lines, -3 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M media/mojo/services/mojo_cdm_service_context.h View 2 chunks +10 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_cdm_service_context.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_media_application.h View 2 chunks +5 lines, -21 lines 0 comments Download
M media/mojo/services/mojo_media_application.cc View 2 chunks +5 lines, -31 lines 0 comments Download
M media/mojo/services/mojo_renderer_factory.h View 2 chunks +6 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_renderer_factory.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.h View 3 chunks +3 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 chunk +1 line, -1 line 0 comments Download
A media/mojo/services/service_factory_impl.h View 1 chunk +54 lines, -0 lines 0 comments Download
A media/mojo/services/service_factory_impl.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M media/test/pipeline_integration_test.cc View 1 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
xhwang
As discussed, adding a factory interface for media to isolate media services. This solves the ...
5 years, 5 months ago (2015-07-17 23:56:07 UTC) #2
xhwang
https://codereview.chromium.org/1230313010/diff/1/media/mojo/services/service_factory_impl.cc File media/mojo/services/service_factory_impl.cc (right): https://codereview.chromium.org/1230313010/diff/1/media/mojo/services/service_factory_impl.cc#newcode42 media/mojo/services/service_factory_impl.cc:42: new MojoCdmService(cdm_service_context_.GetWeakPtr(), service_provider_, Previously |cdm_service_context_| is owned by the ...
5 years, 5 months ago (2015-07-18 00:03:55 UTC) #3
xhwang
Now html_viewer and tests are fixed.
5 years, 5 months ago (2015-07-18 00:42:27 UTC) #4
jam
On 2015/07/18 00:42:27, xhwang wrote: > Now html_viewer and tests are fixed. which parts do ...
5 years, 5 months ago (2015-07-21 16:18:58 UTC) #5
Ken Rockot(use gerrit already)
this approach lgtm https://codereview.chromium.org/1230313010/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1230313010/diff/20001/content/renderer/render_frame_impl.cc#newcode4985 content/renderer/render_frame_impl.cc:4985: shell_ptr->ConnectToApplication(request.Pass(), GetProxy(&service_provider), Hmm this is going ...
5 years, 5 months ago (2015-07-21 17:29:06 UTC) #6
xhwang
rebase only
5 years, 5 months ago (2015-07-21 22:25:13 UTC) #7
xhwang
https://codereview.chromium.org/1230313010/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1230313010/diff/20001/content/renderer/render_frame_impl.cc#newcode4985 content/renderer/render_frame_impl.cc:4985: shell_ptr->ConnectToApplication(request.Pass(), GetProxy(&service_provider), On 2015/07/21 17:29:06, Ken Rockot wrote: > ...
5 years, 5 months ago (2015-07-21 22:30:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230313010/40001
5 years, 5 months ago (2015-07-21 22:51:47 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-21 23:39:58 UTC) #12
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 23:41:03 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c0299ae3c8a93f9d19d2367e4cc7568231f708bb
Cr-Commit-Position: refs/heads/master@{#339780}

Powered by Google App Engine
This is Rietveld 408576698