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

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

Issue 11226019: Encrypted Media: Replace DecryptorClient with key event callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase again Created 8 years 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/clear_key_cdm.cc
diff --git a/webkit/media/crypto/ppapi/clear_key_cdm.cc b/webkit/media/crypto/ppapi/clear_key_cdm.cc
index c546c6a13344abbc7fb573af99b0661a37fd6761..22e3445fa26e19bf1c6e7233236c71a96421a424 100644
--- a/webkit/media/crypto/ppapi/clear_key_cdm.cc
+++ b/webkit/media/crypto/ppapi/clear_key_cdm.cc
@@ -190,7 +190,10 @@ void ClearKeyCdm::Client::NeedKey(const std::string& key_system,
}
ClearKeyCdm::ClearKeyCdm(cdm::Allocator* allocator, cdm::Host* host)
- : decryptor_(&client_),
+ : 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_))),
allocator_(allocator),
host_(host),
timer_delay_ms_(kInitialTimerDelayMs),

Powered by Google App Engine
This is Rietveld 408576698