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

Unified Diff: ppapi/cpp/private/content_decryptor_private.h

Issue 10854209: Modify the PPAPI CDM interface to pass more info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ppapi/c/private/ppp_content_decryptor_private.h ('k') | ppapi/cpp/private/content_decryptor_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/content_decryptor_private.h
diff --git a/ppapi/cpp/private/content_decryptor_private.h b/ppapi/cpp/private/content_decryptor_private.h
index f300ea0218647f1e9ee8af65f91a3828861e41a7..e666a7268df288eebea1ac118a82c7fcb8b7d33d 100644
--- a/ppapi/cpp/private/content_decryptor_private.h
+++ b/ppapi/cpp/private/content_decryptor_private.h
@@ -5,6 +5,7 @@
#ifndef PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
#define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
+#include "ppapi/c/private/pp_content_decryptor.h"
#include "ppapi/c/private/ppb_content_decryptor_private.h"
#include "ppapi/c/private/ppp_content_decryptor_private.h"
@@ -30,12 +31,14 @@ class ContentDecryptor_Private {
virtual bool GenerateKeyRequest(const std::string& key_system,
pp::VarArrayBuffer init_data) = 0;
virtual bool AddKey(const std::string& session_id,
- pp::VarArrayBuffer key) = 0;
+ pp::VarArrayBuffer key,
+ pp::VarArrayBuffer init_data) = 0;
virtual bool CancelKeyRequest(const std::string& session_id) = 0;
virtual bool Decrypt(pp::Buffer_Dev encrypted_buffer,
- int32_t request_id) = 0;
- virtual bool DecryptAndDecode(pp::Buffer_Dev encrypted_buffer,
- int32_t request_id) = 0;
+ const PP_EncryptedBlockInfo& encrypted_block_info) = 0;
+ virtual bool DecryptAndDecode(
+ pp::Buffer_Dev encrypted_buffer,
+ const PP_EncryptedBlockInfo& encrypted_block_info) = 0;
// PPB_ContentDecryptor_Private methods for passing data from the decryptor
// to the browser.
@@ -53,11 +56,11 @@ class ContentDecryptor_Private {
int32_t media_error,
int32_t system_code);
void DeliverBlock(pp::Buffer_Dev decrypted_block,
- int32_t request_id);
+ const PP_DecryptedBlockInfo& decrypted_block_info);
void DeliverFrame(pp::Buffer_Dev decrypted_frame,
- int32_t request_id);
+ const PP_DecryptedBlockInfo& decrypted_block_info);
void DeliverSamples(pp::Buffer_Dev decrypted_samples,
- int32_t request_id);
+ const PP_DecryptedBlockInfo& decrypted_block_info);
private:
InstanceHandle associated_instance_;
« no previous file with comments | « ppapi/c/private/ppp_content_decryptor_private.h ('k') | ppapi/cpp/private/content_decryptor_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698