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

Issue 1165633004: media: Add MojoCdmServiceContext. (Closed)

Created:
5 years, 6 months ago by xhwang
Modified:
5 years, 6 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, 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

media: Add MojoCdmServiceContext. MojoCdmServiceContext will serve as a bridge between a MojoRendererService and a MojoCdmService such that the renderer service can use the CDM service to decrypt (and decode) encrypted contents. With this change, now MojoCdmServiceContext owns and manages all MojoCdmService instances so that MojoRendererService can find the correct CDM to use given a |cdm_id|. As a result, MojoCdmService is not strongly bound to the pipe anymore. An alternative to this is to have MojoCdmService still strongly bound to the pipe, but notifies the MojoCdmServiceContext when the service is created and destroyed. Here I was just following existing code like PermissionServiceContext and GeolocationServiceContext. TBR=sky@chromium.org BUG=432998 Committed: https://crrev.com/ec48647eb0ed539e7436b3a299f8d5e5073c76f8 Cr-Commit-Position: refs/heads/master@{#334061}

Patch Set 1 #

Patch Set 2 : address related comments in https://codereview.chromium.org/840473002/#ps160001 #

Total comments: 16

Patch Set 3 : rebase only #

Patch Set 4 : comments addressed #

Total comments: 24

Patch Set 5 : comments addressed #

Total comments: 9

Patch Set 6 : rebase only #

Patch Set 7 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -40 lines) Patch
M components/html_viewer/media_factory.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/cdm_context.h View 1 2 3 4 3 chunks +28 lines, -8 lines 0 comments Download
M media/base/cdm_context.cc View 1 chunk +10 lines, -2 lines 0 comments Download
M media/mojo/services/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.h View 1 2 3 4 3 chunks +28 lines, -5 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.cc View 1 2 3 4 10 chunks +57 lines, -25 lines 0 comments Download
A media/mojo/services/mojo_cdm_service_context.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_cdm_service_context.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
xhwang
This is split from the original CL (840473002) for easier discussion and review. It covers ...
5 years, 6 months ago (2015-06-01 21:26:22 UTC) #2
sandersd (OOO until July 31)
https://codereview.chromium.org/1165633004/diff/20001/media/base/cdm_context.h File media/base/cdm_context.h (right): https://codereview.chromium.org/1165633004/diff/20001/media/base/cdm_context.h#newcode17 media/base/cdm_context.h:17: // content decryption module (CDM) to decrypt (and decode) ...
5 years, 6 months ago (2015-06-04 22:53:08 UTC) #3
xhwang
rebase only
5 years, 6 months ago (2015-06-05 17:55:59 UTC) #4
xhwang
comments addressed
5 years, 6 months ago (2015-06-05 18:14:11 UTC) #5
xhwang
https://codereview.chromium.org/1165633004/diff/20001/media/base/cdm_context.h File media/base/cdm_context.h (right): https://codereview.chromium.org/1165633004/diff/20001/media/base/cdm_context.h#newcode17 media/base/cdm_context.h:17: // content decryption module (CDM) to decrypt (and decode) ...
5 years, 6 months ago (2015-06-05 18:14:52 UTC) #6
ddorwin
LG. Mostly nits. https://codereview.chromium.org/1165633004/diff/60001/components/html_viewer/media_factory.cc File components/html_viewer/media_factory.cc (right): https://codereview.chromium.org/1165633004/diff/60001/components/html_viewer/media_factory.cc#newcode179 components/html_viewer/media_factory.cc:179: // TODO(xhwang): Replace DefaultMediaPermission with something ...
5 years, 6 months ago (2015-06-08 18:33:11 UTC) #7
xhwang
comments addressed
5 years, 6 months ago (2015-06-08 22:12:09 UTC) #8
xhwang
PTAL again. https://codereview.chromium.org/1165633004/diff/60001/components/html_viewer/media_factory.cc File components/html_viewer/media_factory.cc (right): https://codereview.chromium.org/1165633004/diff/60001/components/html_viewer/media_factory.cc#newcode179 components/html_viewer/media_factory.cc:179: // TODO(xhwang): Replace DefaultMediaPermission with something real ...
5 years, 6 months ago (2015-06-08 22:12:34 UTC) #9
xhwang
https://codereview.chromium.org/1165633004/diff/80001/components/html_viewer/media_factory.cc File components/html_viewer/media_factory.cc (left): https://codereview.chromium.org/1165633004/diff/80001/components/html_viewer/media_factory.cc#oldcode177 components/html_viewer/media_factory.cc:177: This was accidentally introduced in the last CL. It's ...
5 years, 6 months ago (2015-06-08 22:13:38 UTC) #10
xhwang
ddorwin/sandersd: kindly ping :)
5 years, 6 months ago (2015-06-10 15:49:01 UTC) #11
sandersd (OOO until July 31)
lgtm
5 years, 6 months ago (2015-06-10 18:07:19 UTC) #12
ddorwin
LGTM % comments. Thanks. https://codereview.chromium.org/1165633004/diff/80001/media/base/cdm_context.h File media/base/cdm_context.h (right): https://codereview.chromium.org/1165633004/diff/80001/media/base/cdm_context.h#newcode54 media/base/cdm_context.h:54: // GetCdmContext() is called. Add ...
5 years, 6 months ago (2015-06-11 19:09:44 UTC) #13
xhwang
rebase only
5 years, 6 months ago (2015-06-11 19:46:27 UTC) #14
xhwang
comments addressed
5 years, 6 months ago (2015-06-11 20:57:01 UTC) #15
xhwang
https://codereview.chromium.org/1165633004/diff/80001/media/base/cdm_context.h File media/base/cdm_context.h (right): https://codereview.chromium.org/1165633004/diff/80001/media/base/cdm_context.h#newcode54 media/base/cdm_context.h:54: // GetCdmContext() is called. On 2015/06/11 19:09:43, ddorwin wrote: ...
5 years, 6 months ago (2015-06-11 20:58:01 UTC) #16
xhwang
TBRing sky@chromium.org for trivial changes in components/html_viewer/media_factory.cc
5 years, 6 months ago (2015-06-11 20:59:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165633004/120001
5 years, 6 months ago (2015-06-11 21:47:26 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-11 22:38:27 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 22:40:37 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ec48647eb0ed539e7436b3a299f8d5e5073c76f8
Cr-Commit-Position: refs/heads/master@{#334061}

Powered by Google App Engine
This is Rietveld 408576698