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

Issue 10837252: Update CDM interface and add clear key CDM. (Closed)

Created:
8 years, 4 months ago by xhwang
Modified:
8 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Update CDM interface and add clear key CDM. The ClearKeyCdm implements the ContentDecryptionModule. It's a wrapping of the media::AesDecryptor to do real decryption work. The wrapping layer only translates input/output parameters and convert the async calls in media::AesDecryptor to sync calls. TBR=scherkus@chromium.org BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152672 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153566

Patch Set 1 #

Patch Set 2 : #

Total comments: 34

Patch Set 3 : Resolve comments. #

Total comments: 16

Patch Set 4 : Resolve ddorwin's comments. #

Total comments: 4

Patch Set 5 : Update CDM interface and clear key CDM. #

Total comments: 12

Patch Set 6 : Removed "#if defined(COMPONENT_BUILD)" #

Patch Set 7 : Change KeyRequest to KeyMessage to better reflect it's type. #

Patch Set 8 : Move clear_key_cdm.* into ppapi/ #

Patch Set 9 : Workaround xcode build failure on mac. #

Patch Set 10 : Remove tabs from .gypi file. #

Patch Set 11 : Merge "ppapi_cdm_wrapper" target into "clearkeycdmplugin". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -32 lines) Patch
A webkit/media/crypto/ppapi/cdm_export.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A webkit/media/crypto/ppapi/clear_key_cdm.h View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download
A webkit/media/crypto/ppapi/clear_key_cdm.cc View 1 2 3 4 5 6 7 1 chunk +219 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/content_decryption_module.h View 1 2 3 4 5 6 4 chunks +31 lines, -27 lines 0 comments Download
M webkit/media/webkit_media.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
xhwang
Hello ddorwin & tomf, This CL implements the clear key CDM. It compiles but I ...
8 years, 4 months ago (2012-08-15 16:21:25 UTC) #1
xhwang
+scherkus for reviewing.
8 years, 4 months ago (2012-08-15 18:53:16 UTC) #2
Tom Finegan
http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc File webkit/media/crypto/clear_key_cdm.cc (right): http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc#newcode140 webkit/media/crypto/clear_key_cdm.cc:140: ScopedResetter<Client> _(&client_); How about s/_(/resetter(/? :) http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc#newcode141 webkit/media/crypto/clear_key_cdm.cc:141: decryptor_.GenerateKeyRequest("", ...
8 years, 4 months ago (2012-08-15 20:02:42 UTC) #3
ddorwin
Partial review, so you can see it before I get to the rest. I'm also ...
8 years, 4 months ago (2012-08-15 20:15:00 UTC) #4
Tom Finegan
http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc File webkit/media/crypto/clear_key_cdm.cc (right): http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc#newcode141 webkit/media/crypto/clear_key_cdm.cc:141: decryptor_.GenerateKeyRequest("", init_data, init_data_size); On 2012/08/15 20:02:42, tomf wrote: > ...
8 years, 4 months ago (2012-08-15 20:22:24 UTC) #5
ddorwin
I'm not sure how we can go async -> sync -> async without an ID ...
8 years, 4 months ago (2012-08-15 21:03:07 UTC) #6
xhwang
Comments resolved. PTAL! http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc File webkit/media/crypto/clear_key_cdm.cc (right): http://codereview.chromium.org/10837252/diff/2001/webkit/media/crypto/clear_key_cdm.cc#newcode57 webkit/media/crypto/clear_key_cdm.cc:57: Type* object_; On 2012/08/15 20:15:00, ddorwin ...
8 years, 4 months ago (2012-08-16 02:32:40 UTC) #7
ddorwin
http://codereview.chromium.org/10837252/diff/2001/webkit/media/webkit_media.gypi File webkit/media/webkit_media.gypi (right): http://codereview.chromium.org/10837252/diff/2001/webkit/media/webkit_media.gypi#newcode82 webkit/media/webkit_media.gypi:82: 'target_name': 'clear_key_cdm', On 2012/08/16 02:32:40, xhwang wrote: > On ...
8 years, 4 months ago (2012-08-16 05:00:34 UTC) #8
xhwang
http://codereview.chromium.org/10837252/diff/2001/webkit/media/webkit_media.gypi File webkit/media/webkit_media.gypi (right): http://codereview.chromium.org/10837252/diff/2001/webkit/media/webkit_media.gypi#newcode82 webkit/media/webkit_media.gypi:82: 'target_name': 'clear_key_cdm', On 2012/08/16 05:00:35, ddorwin wrote: > On ...
8 years, 4 months ago (2012-08-16 17:19:00 UTC) #9
ddorwin
lgtm Yay for thread-safe! http://codereview.chromium.org/10837252/diff/4004/webkit/media/crypto/clear_key_cdm.cc File webkit/media/crypto/clear_key_cdm.cc (right): http://codereview.chromium.org/10837252/diff/4004/webkit/media/crypto/clear_key_cdm.cc#newcode171 webkit/media/crypto/clear_key_cdm.cc:171: // Client methods are called ...
8 years, 4 months ago (2012-08-16 17:36:50 UTC) #10
xhwang
Updated the CDM interface a little bit more and updated the clear key CDM accordingly. ...
8 years, 4 months ago (2012-08-20 21:09:45 UTC) #11
ddorwin
Not sure about the component build thing. Otherwise, LG. http://codereview.chromium.org/10837252/diff/12002/webkit/media/crypto/ppapi/cdm_export.h File webkit/media/crypto/ppapi/cdm_export.h (right): http://codereview.chromium.org/10837252/diff/12002/webkit/media/crypto/ppapi/cdm_export.h#newcode11 webkit/media/crypto/ppapi/cdm_export.h:11: ...
8 years, 4 months ago (2012-08-20 21:27:07 UTC) #12
xhwang
Removed "#if defined(COMPONENT_BUILD)" and tested on both chromium static build and shared build. PTAL! http://codereview.chromium.org/10837252/diff/12002/webkit/media/crypto/ppapi/cdm_export.h ...
8 years, 4 months ago (2012-08-20 21:57:10 UTC) #13
ddorwin
lgtm
8 years, 4 months ago (2012-08-21 17:17:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10837252/2003
8 years, 4 months ago (2012-08-21 17:20:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10837252/11003
8 years, 4 months ago (2012-08-21 19:30:15 UTC) #16
commit-bot: I haz the power
Try job failure for 10837252-11003 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-21 21:23:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10837252/11003
8 years, 4 months ago (2012-08-21 21:27:56 UTC) #18
commit-bot: I haz the power
Change committed as 152672
8 years, 4 months ago (2012-08-21 23:50:48 UTC) #19
xhwang
thakis@: Please take a look at the .gypi file. Thanks! xhwang
8 years, 4 months ago (2012-08-24 18:26:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10837252/19001
8 years, 4 months ago (2012-08-24 22:10:08 UTC) #21
commit-bot: I haz the power
Try job failure for 10837252-19001 (retry) on mac for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-24 22:29:49 UTC) #22
Nico
On 2012/08/24 18:26:52, xhwang wrote: > thakis@: > > Please take a look at the ...
8 years, 3 months ago (2012-08-26 22:14:14 UTC) #23
xhwang
On 2012/08/26 22:14:14, Nico wrote: > On 2012/08/24 18:26:52, xhwang wrote: > > thakis@: > ...
8 years, 3 months ago (2012-08-27 18:52:39 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10837252/22004
8 years, 3 months ago (2012-08-27 18:52:57 UTC) #25
Nico
On Mon, Aug 27, 2012 at 11:52 AM, <xhwang@chromium.org> wrote: > On 2012/08/26 22:14:14, Nico ...
8 years, 3 months ago (2012-08-27 19:43:39 UTC) #26
commit-bot: I haz the power
8 years, 3 months ago (2012-08-27 22:38:41 UTC) #27
Change committed as 153566

Powered by Google App Engine
This is Rietveld 408576698