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

Issue 10823299: Add ContentDecryptionModule interface. (Closed)

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

Description

Add ContentDecryptionModule interface. This interface should be implemented by any CDM (ContentDecryptionModule) that needs to be hosted by the CDMWrapper. This version only supports Decrypt(). DecryptAndDecode() support will be added in the future. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152056

Patch Set 1 #

Total comments: 17

Patch Set 2 : Resolve comments #

Patch Set 3 : Add default url in GenerateKeyRequest's output. #

Patch Set 4 : Add NoKey error. #

Patch Set 5 : Remove extra error code, use int for sizes and remove param in CdmCreateInstance. #

Patch Set 6 : Add more comments. #

Total comments: 12

Patch Set 7 : Resolve comments. #

Total comments: 19

Patch Set 8 : Resolve comments. #

Total comments: 4

Patch Set 9 : Resolve ddorwin's comments. #

Total comments: 4

Patch Set 10 : Drop duration and fixed typo. #

Total comments: 2

Patch Set 11 : Resolve comments. #

Patch Set 12 : Moved to webkit/media/crypto/ppapi/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -0 lines) Patch
A webkit/media/crypto/ppapi/content_decryption_module.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +150 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
xhwang
Hello ddorwin, This CL adds the interface for ContentDecryptionModule. It mainly mirrors what the media ...
8 years, 4 months ago (2012-08-13 23:06:01 UTC) #1
ddorwin
http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h#newcode8 webkit/media/crypto/content_decryption_module.h:8: #include <stdint.h> This may fail MSVC 2008. See https://groups.google.com/a/chromium.org/d/topic/chromium-dev/zFzvBFptJj4/discussion. ...
8 years, 4 months ago (2012-08-13 23:28:20 UTC) #2
xhwang
+scherkus for more comments. PTAL! http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h#newcode8 webkit/media/crypto/content_decryption_module.h:8: #include <stdint.h> On 2012/08/13 ...
8 years, 4 months ago (2012-08-14 16:26:07 UTC) #3
xhwang
Had a few updates based on offline discussion. PTAL!
8 years, 4 months ago (2012-08-14 22:36:33 UTC) #4
ddorwin
LGTM http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h#newcode58 webkit/media/crypto/content_decryption_module.h:58: uint8_t* data; // Pointer to the beginning of ...
8 years, 4 months ago (2012-08-14 22:52:11 UTC) #5
xhwang
Comments added. PTAL! http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/1/webkit/media/crypto/content_decryption_module.h#newcode58 webkit/media/crypto/content_decryption_module.h:58: uint8_t* data; // Pointer to the ...
8 years, 4 months ago (2012-08-15 01:18:26 UTC) #6
ddorwin
http://codereview.chromium.org/10823299/diff/9001/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/9001/webkit/media/crypto/content_decryption_module.h#newcode78 webkit/media/crypto/content_decryption_module.h:78: // The CDM may also generate a |default_url|. s/generate/extract/ ...
8 years, 4 months ago (2012-08-15 02:14:57 UTC) #7
xhwang
http://codereview.chromium.org/10823299/diff/9001/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/9001/webkit/media/crypto/content_decryption_module.h#newcode78 webkit/media/crypto/content_decryption_module.h:78: // The CDM may also generate a |default_url|. On ...
8 years, 4 months ago (2012-08-15 04:27:46 UTC) #8
ddorwin
lgtm http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h#newcode103 webkit/media/crypto/content_decryption_module.h:103: // successfully canceled or there is no key ...
8 years, 4 months ago (2012-08-15 06:48:10 UTC) #9
scherkus (not reviewing)
I'm still awfully suspicious of the approach -- also does everything need to be in ...
8 years, 4 months ago (2012-08-15 23:26:29 UTC) #10
xhwang
Comments mostly resolved, PTAL! http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h#newcode17 webkit/media/crypto/content_decryption_module.h:17: extern ContentDecryptionModule* CdmCreateInstance(); On 2012/08/15 ...
8 years, 4 months ago (2012-08-16 02:37:42 UTC) #11
ddorwin
http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h#newcode80 webkit/media/crypto/content_decryption_module.h:80: // in which case the callee should have allocated ...
8 years, 4 months ago (2012-08-16 04:15:47 UTC) #12
xhwang
http://codereview.chromium.org/10823299/diff/11002/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/11002/webkit/media/crypto/content_decryption_module.h#newcode20 webkit/media/crypto/content_decryption_module.h:20: extern "C" cdm::ContentDecryptionModule* CdmCreateInstance(); On 2012/08/16 04:15:48, ddorwin wrote: ...
8 years, 4 months ago (2012-08-16 16:44:28 UTC) #13
ddorwin
LGTM % typos http://codereview.chromium.org/10823299/diff/4005/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): http://codereview.chromium.org/10823299/diff/4005/webkit/media/crypto/content_decryption_module.h#newcode101 webkit/media/crypto/content_decryption_module.h:101: // are sample CDM are landed. ...
8 years, 4 months ago (2012-08-16 17:16:39 UTC) #14
xhwang
scherkus@: Can you take a look again? FYI, this file will be moved to webkit/media/crypto/ppapi/ ...
8 years, 4 months ago (2012-08-16 20:27:22 UTC) #15
scherkus (not reviewing)
lgtm w/ one nit -- let's get this landed and iterate http://codereview.chromium.org/10823299/diff/3003/webkit/media/crypto/content_decryption_module.h File webkit/media/crypto/content_decryption_module.h (right): ...
8 years, 4 months ago (2012-08-16 21:18:57 UTC) #16
xhwang
Will need to move this file to whatever folder we decided before committing. http://codereview.chromium.org/10823299/diff/5007/webkit/media/crypto/content_decryption_module.h File ...
8 years, 4 months ago (2012-08-16 21:44:24 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/10823299/6005
8 years, 4 months ago (2012-08-17 01:07:01 UTC) #18
commit-bot: I haz the power
Try job failure for 10823299-6005 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-17 02:29:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10823299/6005
8 years, 4 months ago (2012-08-17 02:57:28 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 05:25:42 UTC) #21
Change committed as 152056

Powered by Google App Engine
This is Rietveld 408576698