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

Issue 763883006: Add Mojo CDM Service. (Closed)

Created:
6 years ago by xhwang
Modified:
6 years ago
Reviewers:
jamesr, ddorwin, jrummell
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, viettrungluu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add Mojo CDM Service. New files added: - mojo CDM interface - MojoCdmService: the mojo CDM implementation. - MojoCdm: a proxy for media code to talk to the mojo CDM service. BUG=432998 Committed: https://crrev.com/c4721f1b9dce7700de2f9810bd56b106f1940e18 Cr-Commit-Position: refs/heads/master@{#309106}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add more comments. #

Total comments: 60

Patch Set 3 : comments addressed #

Patch Set 4 : More updates. #

Total comments: 10

Patch Set 5 : comments addressed #

Total comments: 21

Patch Set 6 : comments addressed #

Patch Set 7 : comments addressed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+908 lines, -8 lines) Patch
M media/mojo/DEPS View 1 2 3 1 chunk +1 line, -0 lines 2 comments Download
M media/mojo/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
A media/mojo/interfaces/content_decryption_module.mojom View 1 2 3 4 1 chunk +112 lines, -0 lines 0 comments Download
A media/mojo/interfaces/decryptor.mojom View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
M media/mojo/services/BUILD.gn View 1 2 3 4 5 2 chunks +42 lines, -0 lines 0 comments Download
M media/mojo/services/media_type_converters.cc View 1 2 3 4 5 6 5 chunks +31 lines, -6 lines 0 comments Download
A media/mojo/services/mojo_cdm.h View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_cdm.cc View 1 2 3 4 5 6 1 chunk +180 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_cdm_promise.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_cdm_promise.cc View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_cdm_service.h View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_cdm_service.cc View 1 2 3 4 5 6 1 chunk +151 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_type_trait.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (5 generated)
xhwang
This CL is not complete yet; many glue code is missing, which I'll added later. ...
6 years ago (2014-12-02 22:19:39 UTC) #2
xhwang
https://codereview.chromium.org/763883006/diff/1/media/mojo/interfaces/decryptor.mojom File media/mojo/interfaces/decryptor.mojom (right): https://codereview.chromium.org/763883006/diff/1/media/mojo/interfaces/decryptor.mojom#newcode15 media/mojo/interfaces/decryptor.mojom:15: interface Decryptor { This is not implemented yet. I'll ...
6 years ago (2014-12-02 22:22:45 UTC) #3
jamesr
could you tell me which bit of code you want me to look at? I'm ...
6 years ago (2014-12-02 22:26:00 UTC) #4
xhwang
> could you tell me which bit of code you want me to look at? ...
6 years ago (2014-12-03 01:23:42 UTC) #5
jamesr
On 2014/12/03 01:23:42, xhwang wrote: > https://codereview.chromium.org/763883006/diff/1/media/mojo/interfaces/content_decryption_module.mojom#newcode5 > media/mojo/interfaces/content_decryption_module.mojom:5: module mojo; > On 2014/12/02 22:25:59, ...
6 years ago (2014-12-03 01:39:04 UTC) #6
xhwang
https://codereview.chromium.org/763883006/diff/20001/media/mojo/services/mojo_cdm.h File media/mojo/services/mojo_cdm.h (right): https://codereview.chromium.org/763883006/diff/20001/media/mojo/services/mojo_cdm.h#newcode32 media/mojo/services/mojo_cdm.h:32: const SessionExpirationUpdateCB& session_expiration_update_cb); ddorwin: This makes me think whether ...
6 years ago (2014-12-04 02:11:22 UTC) #7
ddorwin
Reviewed the interfaces. https://codereview.chromium.org/763883006/diff/20001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/20001/media/mojo/interfaces/content_decryption_module.mojom#newcode10 media/mojo/interfaces/content_decryption_module.mojom:10: // This is used for ContentDecryptionModule ...
6 years ago (2014-12-08 23:46:49 UTC) #8
xhwang
comments addressed
6 years ago (2014-12-10 04:58:19 UTC) #9
xhwang
Updated. For this CL, I'd like the mojo interfaces to be consistent with media::MediaKeys and ...
6 years ago (2014-12-10 04:59:16 UTC) #10
xhwang
qsr: Could you please see the compile failure on android_chromium_gn_compile_dbg bot? I am not familiar ...
6 years ago (2014-12-11 17:40:54 UTC) #11
jamesr
https://codereview.chromium.org/763883006/diff/60001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/60001/media/mojo/interfaces/content_decryption_module.mojom#newcode101 media/mojo/interfaces/content_decryption_module.mojom:101: GetCdmContext(CdmContext& cdm_context); hmm - the & syntax is for ...
6 years ago (2014-12-11 18:32:37 UTC) #12
jamesr
I think all the generators should reject this syntax: struct Foo { } interface Bar ...
6 years ago (2014-12-11 18:33:13 UTC) #13
qsr
On 2014/12/11 17:40:54, xhwang wrote: > qsr: Could you please see the compile failure on ...
6 years ago (2014-12-12 09:47:28 UTC) #14
xhwang
On 2014/12/12 09:47:28, qsr wrote: > On 2014/12/11 17:40:54, xhwang wrote: > > qsr: Could ...
6 years ago (2014-12-12 16:33:06 UTC) #15
ddorwin
LG. A few comments in both PS2 and PS4. https://codereview.chromium.org/763883006/diff/20001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/20001/media/mojo/interfaces/content_decryption_module.mojom#newcode66 media/mojo/interfaces/content_decryption_module.mojom:66: ...
6 years ago (2014-12-12 19:25:13 UTC) #16
ddorwin
LG. A few comments in both PS2 and PS4.
6 years ago (2014-12-12 19:25:14 UTC) #17
xhwang
comments addressed
6 years ago (2014-12-12 22:46:20 UTC) #18
xhwang
Thanks for the comments. PTAL again. https://codereview.chromium.org/763883006/diff/20001/media/mojo/interfaces/decryptor.mojom File media/mojo/interfaces/decryptor.mojom (right): https://codereview.chromium.org/763883006/diff/20001/media/mojo/interfaces/decryptor.mojom#newcode31 media/mojo/interfaces/decryptor.mojom:31: // At most ...
6 years ago (2014-12-12 23:15:44 UTC) #19
ddorwin
https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom#newcode94 media/mojo/interfaces/content_decryption_module.mojom:94: GetCdmContext(int32 cdm_id, Decryptor&? decryptor); Are these parameters mutually exclusive? ...
6 years ago (2014-12-13 02:34:02 UTC) #20
xhwang
https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom#newcode94 media/mojo/interfaces/content_decryption_module.mojom:94: GetCdmContext(int32 cdm_id, Decryptor&? decryptor); On 2014/12/13 02:34:02, ddorwin wrote: ...
6 years ago (2014-12-15 21:18:03 UTC) #21
xhwang
ddorwin: Could you please OWNERS approve? jamesr: I updated the content_decryption_module mojom interface to provide ...
6 years ago (2014-12-17 17:39:51 UTC) #22
xhwang
jrummell: Could you please do a detailed review of this CL? ddorwin reviewed high level ...
6 years ago (2014-12-17 19:15:18 UTC) #24
xhwang
On 2014/12/17 19:15:18, xhwang wrote: > jrummell: Could you please do a detailed review of ...
6 years ago (2014-12-17 19:16:23 UTC) #25
ddorwin
https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom#newcode13 media/mojo/interfaces/content_decryption_module.mojom:13: NOT_SUPPORTED_ERROR, Do all the enums need to be fixed ...
6 years ago (2014-12-17 19:17:51 UTC) #26
jrummell
LG. https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc File media/mojo/services/mojo_cdm.cc (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc#newcode21 media/mojo/services/mojo_cdm.cc:21: mojo::Array<uint8_t> array; Why the different types in these ...
6 years ago (2014-12-18 00:02:12 UTC) #27
jamesr
https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm_service.cc File media/mojo/services/mojo_cdm_service.cc (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm_service.cc#newcode43 media/mojo/services/mojo_cdm_service.cc:43: certificate_data_vector.empty() ? nullptr : &certificate_data_vector[0], On 2014/12/18 00:02:12, jrummell ...
6 years ago (2014-12-18 00:39:23 UTC) #28
xhwang
comments addressed
6 years ago (2014-12-18 08:44:46 UTC) #29
xhwang
Thanks for the comments. Please take a look again. https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom File media/mojo/interfaces/content_decryption_module.mojom (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/interfaces/content_decryption_module.mojom#newcode13 media/mojo/interfaces/content_decryption_module.mojom:13: ...
6 years ago (2014-12-18 17:04:59 UTC) #30
jrummell
lgtm. https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc File media/mojo/services/mojo_cdm.cc (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc#newcode21 media/mojo/services/mojo_cdm.cc:21: mojo::Array<uint8_t> array; On 2014/12/18 17:04:59, xhwang wrote: > ...
6 years ago (2014-12-18 20:01:15 UTC) #31
jamesr
https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc File media/mojo/services/mojo_cdm.cc (right): https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc#newcode21 media/mojo/services/mojo_cdm.cc:21: mojo::Array<uint8_t> array; On 2014/12/18 20:01:14, jrummell wrote: > On ...
6 years ago (2014-12-18 20:14:57 UTC) #32
xhwang
comments addressed
6 years ago (2014-12-18 21:54:36 UTC) #33
xhwang
On 2014/12/18 20:01:15, jrummell wrote: > lgtm. > > https://codereview.chromium.org/763883006/diff/80001/media/mojo/services/mojo_cdm.cc > File media/mojo/services/mojo_cdm.cc (right): > ...
6 years ago (2014-12-18 21:56:56 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763883006/120001
6 years ago (2014-12-18 22:13:13 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/31475)
6 years ago (2014-12-18 22:20:47 UTC) #38
xhwang
https://codereview.chromium.org/763883006/diff/120001/media/mojo/DEPS File media/mojo/DEPS (right): https://codereview.chromium.org/763883006/diff/120001/media/mojo/DEPS#newcode3 media/mojo/DEPS:3: "+mojo/common", jamesr: Please OWNERS approve this DEPS change. Added ...
6 years ago (2014-12-18 23:05:08 UTC) #39
jamesr
https://codereview.chromium.org/763883006/diff/120001/media/mojo/DEPS File media/mojo/DEPS (right): https://codereview.chromium.org/763883006/diff/120001/media/mojo/DEPS#newcode3 media/mojo/DEPS:3: "+mojo/common", On 2014/12/18 23:05:08, xhwang wrote: > jamesr: Please ...
6 years ago (2014-12-18 23:29:27 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763883006/120001
6 years ago (2014-12-18 23:59:01 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years ago (2014-12-19 00:04:29 UTC) #43
commit-bot: I haz the power
6 years ago (2014-12-19 00:05:20 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c4721f1b9dce7700de2f9810bd56b106f1940e18
Cr-Commit-Position: refs/heads/master@{#309106}

Powered by Google App Engine
This is Rietveld 408576698