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

Issue 496143002: Update Pepper interface for EME (Closed)

Created:
6 years, 4 months ago by jrummell
Modified:
6 years, 3 months ago
CC:
chromium-reviews, binji+watch_chromium.org, yusukes+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, noelallen1, tzik, jam, mcasas+watch_chromium.org, raymes+watch_chromium.org, eme-reviews_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, nfullagar1, piman+watch_chromium.org, wjia+watch_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update Pepper interface for EME To support CDM_6, make the following changes: - add SetServerCertificate - add GetUsableKeyIds - rename ReleaseSession to CloseSession - add RemoveSession - add SessionKeysChange event - add SessionExpirationChange event Includes changes to cdm_adapter for the new functionality. Changes to use these new interfaces in blink in a future CL. BUG=358271 TEST=existing EME tests still pass + manual testing Committed: https://crrev.com/1e9a7b144e268ac9310474352d8f54b0b03fe82a Cr-Commit-Position: refs/heads/master@{#293672}

Patch Set 1 #

Total comments: 44

Patch Set 2 : reorder #

Total comments: 22

Patch Set 3 : resolveParameterType() #

Total comments: 2

Patch Set 4 : GetResolveParameterType #

Total comments: 22

Patch Set 5 : C++ types in messages #

Patch Set 6 : cdm_promise rebase #

Total comments: 14

Patch Set 7 : ScopedPPVar #

Patch Set 8 : rebase #

Patch Set 9 : add mojo files #

Patch Set 10 : remove vector.data() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1053 lines, -97 lines) Patch
M content/renderer/media/crypto/ppapi_decryptor.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.h View 1 2 3 4 5 chunks +15 lines, -2 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 3 4 5 7 chunks +110 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -0 lines 0 comments Download
M media/base/limits.h View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M media/cdm/ppapi/cdm_adapter.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download
M media/cdm/ppapi/cdm_adapter.cc View 1 2 3 4 5 6 7 5 chunks +40 lines, -8 lines 0 comments Download
M media/cdm/ppapi/cdm_wrapper.h View 1 2 3 4 5 6 7 5 chunks +28 lines, -7 lines 0 comments Download
M mojo/examples/pepper_container_app/plugin_instance.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M mojo/examples/pepper_container_app/plugin_instance.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_content_decryptor_private.idl View 1 4 chunks +48 lines, -3 lines 0 comments Download
M ppapi/api/private/ppp_content_decryptor_private.idl View 1 2 chunks +53 lines, -4 lines 0 comments Download
M ppapi/c/private/ppb_content_decryptor_private.h View 1 6 chunks +44 lines, -4 lines 0 comments Download
M ppapi/c/private/ppp_content_decryptor_private.h View 1 3 chunks +50 lines, -7 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.h View 1 5 chunks +16 lines, -2 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.cc View 1 2 3 4 7 chunks +109 lines, -16 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 6 chunks +45 lines, -3 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 4 chunks +26 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 chunks +21 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 chunks +133 lines, -0 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.h View 1 2 3 4 3 chunks +13 lines, -3 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.cc View 1 2 3 4 5 6 7 8 9 8 chunks +176 lines, -26 lines 0 comments Download
M ppapi/thunk/ppb_content_decryptor_private_thunk.cc View 1 4 chunks +40 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (12 generated)
jrummell
PTAL.
6 years, 4 months ago (2014-08-21 23:35:01 UTC) #1
ddorwin
https://codereview.chromium.org/496143002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/496143002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode682 content/renderer/pepper/content_decryptor_delegate.cc:682: PP_Var key_ids) { ..._array? https://codereview.chromium.org/496143002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode687 content/renderer/pepper/content_decryptor_delegate.cc:687: if (key_ids_array) { ...
6 years, 4 months ago (2014-08-22 20:49:21 UTC) #2
jrummell
Updated. Includes a rebase to pick up the recent changes to cdm_adapter. https://codereview.chromium.org/496143002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc ...
6 years, 4 months ago (2014-08-25 21:54:37 UTC) #3
ddorwin
https://codereview.chromium.org/496143002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/496143002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc#newcode659 content/renderer/pepper/content_decryptor_delegate.cc:659: DCHECK(promise->Type() == media::CdmPromise::SIMPLE_TYPE); promise && ? If you can't ...
6 years, 4 months ago (2014-08-25 22:55:02 UTC) #4
jrummell
Updated. https://codereview.chromium.org/496143002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/496143002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc#newcode659 content/renderer/pepper/content_decryptor_delegate.cc:659: DCHECK(promise->Type() == media::CdmPromise::SIMPLE_TYPE); On 2014/08/25 22:55:01, ddorwin wrote: ...
6 years, 4 months ago (2014-08-26 00:19:23 UTC) #5
ddorwin
lgtm with naming fix. Thanks. https://codereview.chromium.org/496143002/diff/40001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://codereview.chromium.org/496143002/diff/40001/media/base/cdm_promise.h#newcode59 media/base/cdm_promise.h:59: virtual ResolveParameterType resolveParameterType() const ...
6 years, 4 months ago (2014-08-26 00:42:40 UTC) #6
jrummell
jrummell@chromium.org changed reviewers: + dcheng@chromium.org, dmichael@chromium.org
6 years, 3 months ago (2014-08-26 17:02:45 UTC) #7
jrummell
+dcheng@ for ppapi_messages.h +dmichael@ for ppapi/* and content/renderer/pepper/* https://codereview.chromium.org/496143002/diff/40001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://codereview.chromium.org/496143002/diff/40001/media/base/cdm_promise.h#newcode59 media/base/cdm_promise.h:59: virtual ...
6 years, 3 months ago (2014-08-26 17:02:45 UTC) #8
jrummell
jrummell@chromium.org changed reviewers: + palmer@chromium.org - dcheng@chromium.org
6 years, 3 months ago (2014-08-26 17:46:23 UTC) #9
jrummell
+palmer@ for ppapi_messages.h -dcheng@ since he's OOO
6 years, 3 months ago (2014-08-26 17:46:23 UTC) #10
palmer
https://codereview.chromium.org/496143002/diff/60001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/496143002/diff/60001/content/renderer/pepper/content_decryptor_delegate.cc#newcode343 content/renderer/pepper/content_decryptor_delegate.cc:343: certificate_length, certificate); Check |certificate_length| for sanity first: minimum size, ...
6 years, 3 months ago (2014-08-26 19:09:21 UTC) #11
dmichael (off chromium)
pepper stuff lgtm https://codereview.chromium.org/496143002/diff/60001/ppapi/cpp/private/content_decryptor_private.cc File ppapi/cpp/private/content_decryptor_private.cc (right): https://codereview.chromium.org/496143002/diff/60001/ppapi/cpp/private/content_decryptor_private.cc#newcode322 ppapi/cpp/private/content_decryptor_private.cc:322: key_ids_array.Set(i, pp::Var(array_buffer)); nit(?): I would have ...
6 years, 3 months ago (2014-08-26 21:51:46 UTC) #12
jrummell
Updated. PS5 is the changes as requested, PS6 is a rebase to pick up recent ...
6 years, 3 months ago (2014-08-29 22:35:35 UTC) #13
palmer
LGTM.
6 years, 3 months ago (2014-08-30 00:49:49 UTC) #14
jrummell
ping dmichael@: please re-review the changes in ppapi/proxy/ppb_instance_proxy.cc and ppapi/proxy/ppp_content_decryptor_private_proxy.cc as there is a bunch ...
6 years, 3 months ago (2014-09-04 20:50:12 UTC) #15
dmichael (off chromium)
This has some ref-count leaks; otherwise I'm fine with the changes. https://codereview.chromium.org/496143002/diff/100001/ppapi/proxy/ppb_instance_proxy.cc File ppapi/proxy/ppb_instance_proxy.cc (right): ...
6 years, 3 months ago (2014-09-04 21:17:11 UTC) #16
jrummell
Updated. https://codereview.chromium.org/496143002/diff/100001/ppapi/proxy/ppb_instance_proxy.cc File ppapi/proxy/ppb_instance_proxy.cc (right): https://codereview.chromium.org/496143002/diff/100001/ppapi/proxy/ppb_instance_proxy.cc#newcode1298 ppapi/proxy/ppb_instance_proxy.cc:1298: instance, promise_id, key_ids_array->GetPPVar()); On 2014/09/04 21:17:11, dmichael wrote: ...
6 years, 3 months ago (2014-09-04 23:05:03 UTC) #18
dmichael (off chromium)
lgtm
6 years, 3 months ago (2014-09-04 23:08:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/496143002/140001
6 years, 3 months ago (2014-09-04 23:09:45 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/62878) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/51858) chromium_presubmit ...
6 years, 3 months ago (2014-09-05 00:11:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/496143002/160001
6 years, 3 months ago (2014-09-05 17:52:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/10722) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/9382)
6 years, 3 months ago (2014-09-05 18:11:48 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/496143002/180001
6 years, 3 months ago (2014-09-05 18:43:43 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/2725) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/5802)
6 years, 3 months ago (2014-09-05 19:05:13 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/496143002/200001
6 years, 3 months ago (2014-09-05 22:22:44 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/5942)
6 years, 3 months ago (2014-09-06 00:25:43 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/496143002/200001
6 years, 3 months ago (2014-09-06 00:30:47 UTC) #37
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-06 10:24:04 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/496143002/200001
6 years, 3 months ago (2014-09-08 00:38:07 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:200001) as 653406e625fc3c99bd2e3d6ca847fa976eda5e48
6 years, 3 months ago (2014-09-08 00:39:31 UTC) #42
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:44:34 UTC) #43
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1e9a7b144e268ac9310474352d8f54b0b03fe82a
Cr-Commit-Position: refs/heads/master@{#293672}

Powered by Google App Engine
This is Rietveld 408576698