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

Unified Diff: webkit/media/crypto/proxy_decryptor.cc

Issue 15772012: Separate MediaKeys interface from Decryptor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 7 years, 7 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 | « webkit/media/crypto/proxy_decryptor.h ('k') | webkit/media/webmediaplayer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/crypto/proxy_decryptor.cc
diff --git a/webkit/media/crypto/proxy_decryptor.cc b/webkit/media/crypto/proxy_decryptor.cc
index 1a87024b3732607df7d4076fcba34bf87e77afa2..044402a3ceccee83207d6c894784b2ace8465ba0 100644
--- a/webkit/media/crypto/proxy_decryptor.cc
+++ b/webkit/media/crypto/proxy_decryptor.cc
@@ -121,13 +121,13 @@ bool ProxyDecryptor::GenerateKeyRequest(const std::string& key_system,
decryptor_ = CreateDecryptor(key_system);
if (!decryptor_) {
key_error_cb_.Run(
- key_system, std::string(), media::Decryptor::kClientError, 0);
+ key_system, std::string(), media::MediaKeys::kClientError, 0);
return false;
}
}
- if (!decryptor_->GenerateKeyRequest(key_system, type,
- init_data, init_data_length)) {
+ if (!decryptor_->GetMediaKeys()->GenerateKeyRequest(
+ key_system, type, init_data, init_data_length)) {
decryptor_.reset();
return false;
}
@@ -147,8 +147,8 @@ void ProxyDecryptor::AddKey(const std::string& key_system,
DVLOG(1) << "AddKey()";
// WebMediaPlayerImpl ensures GenerateKeyRequest() has been called.
- decryptor_->AddKey(key_system, key, key_length, init_data, init_data_length,
- session_id);
+ decryptor_->GetMediaKeys()->AddKey(
+ key_system, key, key_length, init_data, init_data_length, session_id);
}
void ProxyDecryptor::CancelKeyRequest(const std::string& key_system,
@@ -156,7 +156,7 @@ void ProxyDecryptor::CancelKeyRequest(const std::string& key_system,
DVLOG(1) << "CancelKeyRequest()";
// WebMediaPlayerImpl ensures GenerateKeyRequest() has been called.
- decryptor_->CancelKeyRequest(key_system, session_id);
+ decryptor_->GetMediaKeys()->CancelKeyRequest(key_system, session_id);
}
#if defined(ENABLE_PEPPER_CDMS)
@@ -210,7 +210,7 @@ void ProxyDecryptor::KeyAdded(const std::string& key_system,
void ProxyDecryptor::KeyError(const std::string& key_system,
const std::string& session_id,
- media::Decryptor::KeyError error_code,
+ media::MediaKeys::KeyError error_code,
int system_code) {
key_error_cb_.Run(key_system, session_id, error_code, system_code);
}
« no previous file with comments | « webkit/media/crypto/proxy_decryptor.h ('k') | webkit/media/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698