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

Issue 24192004: Changes to the EME Pepper API (Closed)

Created:
7 years, 3 months ago by jrummell
Modified:
7 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Create a Pepper-based CDM when a MediaKeys object is created. The new version of EME needs to be able to instantiate the Pepper-based CDM when a MediaKeys object is created. Moving creation from first GenerateKeyRequest() to Initialize(), and passing in extra (extendable) data. Also removing unused NeedKey(). BUG=250049 TEST=browser_tests --gtest_filter=EncryptedMediaIsTypeSupported*.* all pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224306

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 23

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -306 lines) Patch
M content/renderer/media/crypto/ppapi_decryptor.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M media/cdm/ppapi/cdm_wrapper.cc View 1 2 3 4 10 chunks +31 lines, -33 lines 0 comments Download
M ppapi/api/private/ppb_content_decryptor_private.idl View 2 chunks +1 line, -30 lines 0 comments Download
M ppapi/api/private/ppp_content_decryptor_private.idl View 1 2 4 chunks +16 lines, -5 lines 0 comments Download
M ppapi/c/private/ppb_content_decryptor_private.h View 4 chunks +6 lines, -33 lines 0 comments Download
M ppapi/c/private/ppp_content_decryptor_private.h View 1 2 6 chunks +19 lines, -10 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.h View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.cc View 1 2 3 5 chunks +17 lines, -21 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 10 chunks +81 lines, -79 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 3 chunks +0 lines, -30 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.cc View 1 2 3 5 chunks +33 lines, -4 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_content_decryptor_private_thunk.cc View 4 chunks +6 lines, -18 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
jrummell
PTAL. I will need other OWNERS, but I'll add them later once this looks like ...
7 years, 3 months ago (2013-09-17 21:33:55 UTC) #1
DaleCurtis
Syntactically, lgtm. Having a one time Initialize() like this will be much clearer to delay ...
7 years, 3 months ago (2013-09-17 21:50:34 UTC) #2
ddorwin
LGTM with description update and other comments. You'll need ppapi OWNERS approval. Comments on the ...
7 years, 3 months ago (2013-09-17 23:15:42 UTC) #3
xhwang
Looking good. Thanks! Just a few nits. https://codereview.chromium.org/24192004/diff/1/ppapi/cpp/private/content_decryptor_private.cc File ppapi/cpp/private/content_decryptor_private.cc (right): https://codereview.chromium.org/24192004/diff/1/ppapi/cpp/private/content_decryptor_private.cc#newcode27 ppapi/cpp/private/content_decryptor_private.cc:27: PP_Var key_system_arg) ...
7 years, 3 months ago (2013-09-18 00:07:17 UTC) #4
jrummell
Updated. PTAL. +dmichael +tsepez for ppapi/proxy/ppapi_messages.h https://codereview.chromium.org/24192004/diff/1/media/cdm/ppapi/cdm_wrapper.cc File media/cdm/ppapi/cdm_wrapper.cc (right): https://codereview.chromium.org/24192004/diff/1/media/cdm/ppapi/cdm_wrapper.cc#newcode641 media/cdm/ppapi/cdm_wrapper.cc:641: PP_DCHECK(key_system_.empty() || key_system_ ...
7 years, 3 months ago (2013-09-18 21:01:15 UTC) #5
Tom Sepez
Messages LGTM.
7 years, 3 months ago (2013-09-18 21:03:00 UTC) #6
ddorwin
https://codereview.chromium.org/24192004/diff/10001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/24192004/diff/10001/content/renderer/pepper/content_decryptor_delegate.cc#newcode251 content/renderer/pepper/content_decryptor_delegate.cc:251: nit: I would put this after the assignment, which ...
7 years, 3 months ago (2013-09-18 21:26:53 UTC) #7
DaleCurtis
https://codereview.chromium.org/24192004/diff/10001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/24192004/diff/10001/content/renderer/pepper/content_decryptor_delegate.cc#newcode248 content/renderer/pepper/content_decryptor_delegate.cc:248: const PP_KeySystemFlags key_system_flags) { const& https://codereview.chromium.org/24192004/diff/10001/content/renderer/pepper/content_decryptor_delegate.h File content/renderer/pepper/content_decryptor_delegate.h (right): ...
7 years, 3 months ago (2013-09-18 21:29:29 UTC) #8
ddorwin
LG other than the pointer issue and a few other minor things in my previous ...
7 years, 3 months ago (2013-09-18 22:22:23 UTC) #9
dmichael (off chromium)
https://codereview.chromium.org/24192004/diff/10001/ppapi/api/private/pp_content_decryptor.idl File ppapi/api/private/pp_content_decryptor.idl (right): https://codereview.chromium.org/24192004/diff/10001/ppapi/api/private/pp_content_decryptor.idl#newcode375 ppapi/api/private/pp_content_decryptor.idl:375: PP_Bool can_challenge_platform; On 2013/09/18 21:29:30, DaleCurtis wrote: > FYI, ...
7 years, 3 months ago (2013-09-18 22:52:32 UTC) #10
jrummell
Updated so Initialize() passes a bool rather than a struct. PTAL. https://codereview.chromium.org/24192004/diff/10001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): ...
7 years, 3 months ago (2013-09-19 00:37:28 UTC) #11
ddorwin
LGTM % nits https://codereview.chromium.org/24192004/diff/42001/content/renderer/pepper/content_decryptor_delegate.h File content/renderer/pepper/content_decryptor_delegate.h (right): https://codereview.chromium.org/24192004/diff/42001/content/renderer/pepper/content_decryptor_delegate.h#newcode43 content/renderer/pepper/content_decryptor_delegate.h:43: const bool can_challenge_platform); const not necessary ...
7 years, 3 months ago (2013-09-19 00:58:41 UTC) #12
DaleCurtis
lgtm % ddorwin's comments. https://codereview.chromium.org/24192004/diff/42001/content/renderer/media/crypto/ppapi_decryptor.cc File content/renderer/media/crypto/ppapi_decryptor.cc (right): https://codereview.chromium.org/24192004/diff/42001/content/renderer/media/crypto/ppapi_decryptor.cc#newcode41 content/renderer/media/crypto/ppapi_decryptor.cc:41: bool can_challenge_platform = false; const
7 years, 3 months ago (2013-09-19 01:12:36 UTC) #13
dmichael (off chromium)
lgtm https://codereview.chromium.org/24192004/diff/42001/ppapi/cpp/private/content_decryptor_private.cc File ppapi/cpp/private/content_decryptor_private.cc (right): https://codereview.chromium.org/24192004/diff/42001/ppapi/cpp/private/content_decryptor_private.cc#newcode40 ppapi/cpp/private/content_decryptor_private.cc:40: can_challenge_platform); PP_ToBool(can_challenge_platform)? I think the Windows compiler might ...
7 years, 3 months ago (2013-09-19 16:04:19 UTC) #14
xhwang
lgtm (did you grep to make sure we get all NeedKey under ppapi?)
7 years, 3 months ago (2013-09-19 16:11:12 UTC) #15
jrummell
nits fixed. Thanks for the reviews. https://codereview.chromium.org/24192004/diff/42001/content/renderer/media/crypto/ppapi_decryptor.cc File content/renderer/media/crypto/ppapi_decryptor.cc (right): https://codereview.chromium.org/24192004/diff/42001/content/renderer/media/crypto/ppapi_decryptor.cc#newcode41 content/renderer/media/crypto/ppapi_decryptor.cc:41: bool can_challenge_platform = ...
7 years, 3 months ago (2013-09-19 18:15:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/24192004/67001
7 years, 3 months ago (2013-09-19 18:19:53 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-19 18:47:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/24192004/91001
7 years, 3 months ago (2013-09-19 19:09:42 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=199420
7 years, 3 months ago (2013-09-19 21:36:01 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/24192004/91001
7 years, 3 months ago (2013-09-19 21:41:41 UTC) #21
commit-bot: I haz the power
7 years, 3 months ago (2013-09-20 06:34:55 UTC) #22
Message was sent while issue was closed.
Change committed as 224306

Powered by Google App Engine
This is Rietveld 408576698