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

Issue 10871006: Connect PpapiDecryptor and PluginInstance. (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

Connect PpapiDecryptor and PluginInstance. - In PpapiDecrytor, enable calls into the PluginInstance. - In PluginInstance, passing in all data needed by the PPP_ContentDecryptor interface. - Hook up DecryptorClient and PPB_ContentDecryptor calls in PluginInstance. BUG=138139 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153629

Patch Set 1 #

Total comments: 68

Patch Set 2 : Resolve comments. #

Total comments: 4

Patch Set 3 : Resolve comments. #

Total comments: 6

Patch Set 4 : Resolve dmichael's comments. #

Patch Set 5 : Avoid dependency on content. #

Total comments: 2

Patch Set 6 : Resolve comments. #

Patch Set 7 : Rebase and fix lint warnings. #

Patch Set 8 : Fix a minor bug happened during code copying. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -64 lines) Patch
M ppapi/api/private/pp_content_decryptor.idl View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M ppapi/c/private/pp_content_decryptor.h View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.h View 1 2 3 4 3 chunks +10 lines, -4 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.cc View 1 2 3 4 5 4 chunks +52 lines, -27 lines 0 comments Download
M webkit/plugins/ppapi/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 chunks +21 lines, -7 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 10 chunks +192 lines, -23 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
xhwang
Hello, This CL is based on tomf@'s CL: http://codereview.chromium.org/10854209/. I'll rebase when his CL is ...
8 years, 4 months ago (2012-08-22 00:07:01 UTC) #1
Tom Finegan
Initial comments, more tomorrow... http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc#newcode48 webkit/media/crypto/ppapi_decryptor.cc:48: client_->KeyError(key_system, "", kUnknownError, 0); nit: ...
8 years, 4 months ago (2012-08-22 01:05:47 UTC) #2
ddorwin
Need to look over PI.cc some more, but here's some initial feedback. http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc ...
8 years, 4 months ago (2012-08-22 01:26:26 UTC) #3
ddorwin
Finishes reviewing. http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1328 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1328: void PluginInstance::SetDecryptClient( Why not set_decryptor_client()? http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1385 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1385: ...
8 years, 4 months ago (2012-08-22 04:09:21 UTC) #4
dmichael (off chromium)
http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc#newcode46 webkit/media/crypto/ppapi_decryptor.cc:46: std::string(reinterpret_cast<const char*>(init_data), On 2012/08/22 01:26:26, ddorwin wrote: > It's ...
8 years, 4 months ago (2012-08-22 20:30:15 UTC) #5
xhwang
Most comments resolved, PTAL! http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc#newcode10 webkit/media/crypto/ppapi_decryptor.cc:10: #include "base/location.h" On 2012/08/22 01:26:26, ...
8 years, 4 months ago (2012-08-24 00:51:50 UTC) #6
ddorwin
lgtm % comments http://codereview.chromium.org/10871006/diff/8001/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/10871006/diff/8001/webkit/media/crypto/ppapi_decryptor.cc#newcode102 webkit/media/crypto/ppapi_decryptor.cc:102: client_->KeyError(key_system, session_id, kUnknownError, 0); The intent ...
8 years, 4 months ago (2012-08-24 05:54:43 UTC) #7
xhwang
http://codereview.chromium.org/10871006/diff/8001/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/10871006/diff/8001/webkit/media/crypto/ppapi_decryptor.cc#newcode102 webkit/media/crypto/ppapi_decryptor.cc:102: client_->KeyError(key_system, session_id, kUnknownError, 0); On 2012/08/24 05:54:43, ddorwin wrote: ...
8 years, 4 months ago (2012-08-24 16:57:46 UTC) #8
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): https://chromiumcodereview.appspot.com/10871006/diff/1/webkit/media/crypto/ppapi_decryptor.cc#newcode46 webkit/media/crypto/ppapi_decryptor.cc:46: std::string(reinterpret_cast<const char*>(init_data), On 2012/08/24 00:51:51, xhwang wrote: > On ...
8 years, 4 months ago (2012-08-24 17:18:33 UTC) #9
xhwang
http://codereview.chromium.org/10871006/diff/9007/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/10871006/diff/9007/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1442 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1442: uint64_t request_id = next_decryption_request_id_++; On 2012/08/24 17:18:34, dmichael wrote: ...
8 years, 4 months ago (2012-08-24 23:18:27 UTC) #10
ddorwin
LGTM for me.
8 years, 3 months ago (2012-08-27 19:41:13 UTC) #11
dmichael (off chromium)
lgtm http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode387 webkit/plugins/ppapi/ppapi_plugin_instance.cc:387: next_decryption_request_id_(0) { On 2012/08/24 00:51:51, xhwang wrote: > ...
8 years, 3 months ago (2012-08-27 20:14:48 UTC) #12
xhwang
http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/10871006/diff/1/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode387 webkit/plugins/ppapi/ppapi_plugin_instance.cc:387: next_decryption_request_id_(0) { On 2012/08/27 20:14:48, dmichael wrote: > On ...
8 years, 3 months ago (2012-08-27 22:58:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10871006/6007
8 years, 3 months ago (2012-08-27 23:14:20 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/10871006/15005
8 years, 3 months ago (2012-08-28 00:14:45 UTC) #15
commit-bot: I haz the power
8 years, 3 months ago (2012-08-28 06:12:08 UTC) #16
Change committed as 153629

Powered by Google App Engine
This is Rietveld 408576698