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 10854209: Modify the PPAPI CDM interface to pass more info. (Closed)

Created:
8 years, 4 months ago by Tom Finegan
Modified:
8 years, 4 months ago
CC:
chromium-reviews, piman+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Modify the PPAPI CDM interface to pass more info. Builds on interface work done by xhwang in issue 10857027. Add init_data argument to AddKey. Change the PPP Decrypt methods to take PP_EncryptedBlockInfo structs instead of simple integer identifiers. Change the PPB delivery methods to take PP_DecryptedBlockInfo structs instead of simple integer identifiers. Update the proxy code accordingly. BUG=138139 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152724

Patch Set 1 #

Total comments: 25

Patch Set 2 : Fix SerializeBlockInfo. #

Patch Set 3 : Updates that resolve xhwang's comments. #

Total comments: 14

Patch Set 4 : Addressed all comments (I think!) #

Total comments: 5

Patch Set 5 : Added TODO. #

Patch Set 6 : Fixes transposed memset args. #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+712 lines, -166 lines) Patch
A ppapi/api/private/pp_content_decryptor.idl View 1 chunk +152 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_content_decryptor_private.idl View 3 chunks +12 lines, -9 lines 0 comments Download
M ppapi/api/private/ppp_content_decryptor_private.idl View 3 chunks +14 lines, -9 lines 0 comments Download
A ppapi/c/private/pp_content_decryptor.h View 1 chunk +178 lines, -0 lines 0 comments Download
M ppapi/c/private/ppb_content_decryptor_private.h View 5 chunks +23 lines, -16 lines 0 comments Download
M ppapi/c/private/ppp_content_decryptor_private.h View 5 chunks +22 lines, -14 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.h View 1 2 3 3 chunks +10 lines, -7 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.cc View 1 2 3 8 chunks +28 lines, -18 lines 0 comments Download
A ppapi/proxy/content_decryptor_private_serializer.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 2 chunks +9 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 6 4 chunks +13 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 3 chunks +53 lines, -20 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.h View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.cc View 1 2 3 8 chunks +51 lines, -16 lines 0 comments Download
M ppapi/thunk/ppb_content_decryptor_private_thunk.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 2 chunks +5 lines, -3 lines 0 comments Download
M webkit/media/crypto/ppapi/cdm_wrapper.cc View 1 2 3 4 5 6 chunks +46 lines, -16 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 3 chunks +6 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 5 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Tom Finegan
ddorwin, dmichael, xhwang, Please give this CL a quick look-- it builds on the already ...
8 years, 4 months ago (2012-08-17 22:43:06 UTC) #1
dmichael (off chromium)
I'd rather wait until you think it's ready for review. At least, it would be ...
8 years, 4 months ago (2012-08-17 22:56:54 UTC) #2
xhwang
On 2012/08/17 22:56:54, dmichael wrote: > I'd rather wait until you think it's ready for ...
8 years, 4 months ago (2012-08-17 23:03:38 UTC) #3
Tom Finegan
dmichael, ddorwin, xhwang, I was overly pessimistic about the state of this CL on Friday-- ...
8 years, 4 months ago (2012-08-20 21:31:45 UTC) #4
xhwang
Nice patch, only a few comments. http://codereview.chromium.org/10854209/diff/1/ppapi/proxy/content_decryptor_private_serializer-inl.h File ppapi/proxy/content_decryptor_private_serializer-inl.h (right): http://codereview.chromium.org/10854209/diff/1/ppapi/proxy/content_decryptor_private_serializer-inl.h#newcode18 ppapi/proxy/content_decryptor_private_serializer-inl.h:18: // IPC. Return ...
8 years, 4 months ago (2012-08-20 22:19:31 UTC) #5
Tom Finegan
https://chromiumcodereview.appspot.com/10854209/diff/1/ppapi/proxy/content_decryptor_private_serializer-inl.h File ppapi/proxy/content_decryptor_private_serializer-inl.h (right): https://chromiumcodereview.appspot.com/10854209/diff/1/ppapi/proxy/content_decryptor_private_serializer-inl.h#newcode18 ppapi/proxy/content_decryptor_private_serializer-inl.h:18: // IPC. Return true upon success, and false upon ...
8 years, 4 months ago (2012-08-20 22:50:03 UTC) #6
xhwang
lgtm
8 years, 4 months ago (2012-08-21 00:39:27 UTC) #7
ddorwin
webkit/media review. https://chromiumcodereview.appspot.com/10854209/diff/5003/webkit/media/crypto/ppapi/cdm_wrapper.cc File webkit/media/crypto/ppapi/cdm_wrapper.cc (right): https://chromiumcodereview.appspot.com/10854209/diff/5003/webkit/media/crypto/ppapi/cdm_wrapper.cc#newcode154 webkit/media/crypto/ppapi/cdm_wrapper.cc:154: DecryptedBlock decrypted_block; Set encrypted_block_info on DecryptedBlock.
8 years, 4 months ago (2012-08-21 17:30:28 UTC) #8
dmichael (off chromium)
looks mostly good. https://chromiumcodereview.appspot.com/10854209/diff/1/ppapi/cpp/private/content_decryptor_private.h File ppapi/cpp/private/content_decryptor_private.h (right): https://chromiumcodereview.appspot.com/10854209/diff/1/ppapi/cpp/private/content_decryptor_private.h#newcode38 ppapi/cpp/private/content_decryptor_private.h:38: const PP_EncryptedBlockInfo* encrypted_block_info) = 0; You ...
8 years, 4 months ago (2012-08-21 17:37:07 UTC) #9
xhwang
http://codereview.chromium.org/10854209/diff/5003/ppapi/proxy/ppb_instance_proxy.h File ppapi/proxy/ppb_instance_proxy.h (right): http://codereview.chromium.org/10854209/diff/5003/ppapi/proxy/ppb_instance_proxy.h#newcode7 ppapi/proxy/ppb_instance_proxy.h:7: nit: include what you use, add #include <string> here. ...
8 years, 4 months ago (2012-08-21 21:22:01 UTC) #10
Tom Finegan
ddorwin, dmichael, xhwang: PTAL, I think I've gotten to all the comments, but with them ...
8 years, 4 months ago (2012-08-21 22:57:38 UTC) #11
dmichael (off chromium)
lgtm https://chromiumcodereview.appspot.com/10854209/diff/11001/webkit/media/crypto/ppapi/cdm_wrapper.cc File webkit/media/crypto/ppapi/cdm_wrapper.cc (right): https://chromiumcodereview.appspot.com/10854209/diff/11001/webkit/media/crypto/ppapi/cdm_wrapper.cc#newcode54 webkit/media/crypto/ppapi/cdm_wrapper.cc:54: pp::Module::Get()->core()->CallOnMainThread(0, cb, PP_OK); May be good to add ...
8 years, 4 months ago (2012-08-21 23:05:14 UTC) #12
ddorwin
https://chromiumcodereview.appspot.com/10854209/diff/11001/webkit/media/crypto/ppapi/cdm_wrapper.cc File webkit/media/crypto/ppapi/cdm_wrapper.cc (right): https://chromiumcodereview.appspot.com/10854209/diff/11001/webkit/media/crypto/ppapi/cdm_wrapper.cc#newcode38 webkit/media/crypto/ppapi/cdm_wrapper.cc:38: std::memset(reinterpret_cast<void*>(&decrypted_block_info), May be able to use a constructor. xhang ...
8 years, 4 months ago (2012-08-21 23:18:25 UTC) #13
ddorwin
lgtm https://chromiumcodereview.appspot.com/10854209/diff/11001/webkit/media/crypto/ppapi/cdm_wrapper.cc File webkit/media/crypto/ppapi/cdm_wrapper.cc (right): https://chromiumcodereview.appspot.com/10854209/diff/11001/webkit/media/crypto/ppapi/cdm_wrapper.cc#newcode77 webkit/media/crypto/ppapi/cdm_wrapper.cc:77: const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; On 2012/08/21 23:18:25, ddorwin ...
8 years, 4 months ago (2012-08-21 23:21:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/10854209/1025
8 years, 4 months ago (2012-08-21 23:22:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/10854209/16003
8 years, 4 months ago (2012-08-21 23:42:43 UTC) #16
Tom Finegan (google)
On 2012/08/21 23:42:43, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years, 4 months ago (2012-08-22 00:26:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/10854209/22001
8 years, 4 months ago (2012-08-22 00:28:33 UTC) #18
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 04:06:24 UTC) #19
Change committed as 152724

Powered by Google App Engine
This is Rietveld 408576698