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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.h

Issue 496143002: Update Pepper interface for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/content_decryptor_delegate.h
diff --git a/content/renderer/pepper/content_decryptor_delegate.h b/content/renderer/pepper/content_decryptor_delegate.h
index 182d6a662572cfddaf8500095f550a4a754f36de..bf1b82961c8eaf6dbcd76ba3b1dd4572607cb83d 100644
--- a/content/renderer/pepper/content_decryptor_delegate.h
+++ b/content/renderer/pepper/content_decryptor_delegate.h
@@ -20,6 +20,7 @@
#include "media/base/decryptor.h"
#include "media/base/media_keys.h"
#include "media/base/sample_format.h"
+#include "ppapi/c/pp_time.h"
#include "ppapi/c/private/pp_content_decryptor.h"
#include "ppapi/c/private/ppp_content_decryptor_private.h"
#include "ui/gfx/size.h"
@@ -55,6 +56,9 @@ class ContentDecryptorDelegate {
void InstanceCrashed();
// Provides access to PPP_ContentDecryptor_Private.
+ void SetServerCertificate(const uint8* certificate,
+ int certificate_length,
+ scoped_ptr<media::SimpleCdmPromise> promise);
void CreateSession(const std::string& init_data_type,
const uint8* init_data,
int init_data_length,
@@ -66,8 +70,12 @@ class ContentDecryptorDelegate {
const uint8* response,
int response_length,
scoped_ptr<media::SimpleCdmPromise> promise);
- void ReleaseSession(const std::string& web_session_id,
- scoped_ptr<media::SimpleCdmPromise> promise);
+ void GetUsableKeyIds(const std::string& web_session_id,
ddorwin 2014/08/22 20:49:20 Nit: Keep the lifetime methods together, meaning t
jrummell 2014/08/25 21:54:36 Done.
+ scoped_ptr<media::KeyIdsPromise> promise);
+ void CloseSession(const std::string& web_session_id,
+ scoped_ptr<media::SimpleCdmPromise> promise);
+ void RemoveSession(const std::string& web_session_id,
+ scoped_ptr<media::SimpleCdmPromise> promise);
bool Decrypt(media::Decryptor::StreamType stream_type,
const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
const media::Decryptor::DecryptCB& decrypt_cb);
@@ -93,6 +101,7 @@ class ContentDecryptorDelegate {
// PPB_ContentDecryptor_Private dispatching methods.
void OnPromiseResolved(uint32 promise_id);
void OnPromiseResolvedWithSession(uint32 promise_id, PP_Var web_session_id);
+ void OnPromiseResolvedWithKeyIds(uint32 promise_id, PP_Var key_ids);
void OnPromiseRejected(uint32 promise_id,
PP_CdmExceptionCode exception_code,
uint32 system_code,
@@ -100,6 +109,10 @@ class ContentDecryptorDelegate {
void OnSessionMessage(PP_Var web_session_id,
PP_Var message,
PP_Var destination_url);
+ void OnSessionKeysChange(PP_Var web_session_id,
+ PP_Bool has_additional_usable_key);
+ void OnSessionExpirationChange(PP_Var web_session_id,
+ PP_Time new_expiry_time);
void OnSessionReady(PP_Var web_session_id);
void OnSessionClosed(PP_Var web_session_id);
void OnSessionError(PP_Var web_session_id,

Powered by Google App Engine
This is Rietveld 408576698