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

Unified Diff: webkit/renderer/media/crypto/ppapi/clear_key_cdm.cc

Issue 17309003: Removed unused NeedKey callback from Decryptors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 7 years, 6 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/renderer/media/crypto/ppapi/clear_key_cdm.h ('k') | webkit/renderer/media/crypto/ppapi_decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/media/crypto/ppapi/clear_key_cdm.cc
diff --git a/webkit/renderer/media/crypto/ppapi/clear_key_cdm.cc b/webkit/renderer/media/crypto/ppapi/clear_key_cdm.cc
index 81f7cd0dbba4d36fe7a58a18e847f65b783287cf..335001b8fd95f89a4b8682949e8c9e32534c600a 100644
--- a/webkit/renderer/media/crypto/ppapi/clear_key_cdm.cc
+++ b/webkit/renderer/media/crypto/ppapi/clear_key_cdm.cc
@@ -181,21 +181,10 @@ void ClearKeyCdm::Client::KeyMessage(const std::string& session_id,
default_url_ = default_url;
}
-void ClearKeyCdm::Client::NeedKey(const std::string& session_id,
- const std::string& type,
- scoped_ptr<uint8[]> init_data,
- int init_data_length) {
- // In the current implementation of AesDecryptor, NeedKey is not used.
- // If no key is available to decrypt an input buffer, it returns kNoKey to
- // the caller instead of firing NeedKey.
- NOTREACHED();
-}
-
ClearKeyCdm::ClearKeyCdm(cdm::Host* host)
: decryptor_(base::Bind(&Client::KeyAdded, base::Unretained(&client_)),
base::Bind(&Client::KeyError, base::Unretained(&client_)),
- base::Bind(&Client::KeyMessage, base::Unretained(&client_)),
- base::Bind(&Client::NeedKey, base::Unretained(&client_))),
+ base::Bind(&Client::KeyMessage, base::Unretained(&client_))),
host_(host),
timer_delay_ms_(kInitialTimerDelayMs),
timer_set_(false) {
« no previous file with comments | « webkit/renderer/media/crypto/ppapi/clear_key_cdm.h ('k') | webkit/renderer/media/crypto/ppapi_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698