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

Unified Diff: webkit/media/crypto/ppapi/cdm_wrapper.cc

Issue 11270057: Add type argument to pepper content decryptor method GenerateKeyRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: webkit/media/crypto/ppapi/cdm_wrapper.cc
diff --git a/webkit/media/crypto/ppapi/cdm_wrapper.cc b/webkit/media/crypto/ppapi/cdm_wrapper.cc
index 592ac1ed29e96e2fb05013139a23c8f549983242..fb71a0632fd23673e1bbe40f871069f5de47b5b1 100644
--- a/webkit/media/crypto/ppapi/cdm_wrapper.cc
+++ b/webkit/media/crypto/ppapi/cdm_wrapper.cc
@@ -479,6 +479,7 @@ class CdmWrapper : public pp::Instance,
// Note: Results of calls to these methods must be reported through the
// PPB_ContentDecryptor_Private interface.
virtual void GenerateKeyRequest(const std::string& key_system,
+ const std::string& mime_type,
pp::VarArrayBuffer init_data) OVERRIDE;
virtual void AddKey(const std::string& session_id,
pp::VarArrayBuffer key,
@@ -582,6 +583,7 @@ CdmWrapper::~CdmWrapper() {
}
void CdmWrapper::GenerateKeyRequest(const std::string& key_system,
+ const std::string& mime_type,
pp::VarArrayBuffer init_data) {
PP_DCHECK(!key_system.empty());
@@ -593,6 +595,8 @@ void CdmWrapper::GenerateKeyRequest(const std::string& key_system,
LinkedKeyMessage key_request(new KeyMessageImpl());
cdm::Status status = cdm_->GenerateKeyRequest(
+ mime_type.c_str(),
+ mime_type.length(),
xhwang 2012/10/26 06:19:30 Use data() and size() to be consistent with how we
Tom Finegan 2012/10/26 22:51:33 Done.
reinterpret_cast<const uint8_t*>(init_data.Map()),
init_data.ByteLength(),
key_request.get());

Powered by Google App Engine
This is Rietveld 408576698