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

Unified Diff: public/platform/WebMediaPlayerClient.h

Issue 134663005: Add new needkey event for EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test Created 6 years, 11 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: public/platform/WebMediaPlayerClient.h
diff --git a/public/platform/WebMediaPlayerClient.h b/public/platform/WebMediaPlayerClient.h
index d86108ca0fd925a12f51ad944cba488751bfac6b..b7195be7e6c39331e33e8358ffb38f8a4bb7b093 100644
--- a/public/platform/WebMediaPlayerClient.h
+++ b/public/platform/WebMediaPlayerClient.h
@@ -67,7 +67,12 @@ public:
virtual void keyAdded(const WebString& keySystem, const WebString& sessionId) = 0;
virtual void keyError(const WebString& keySystem, const WebString& sessionId, MediaKeyErrorCode, unsigned short systemCode) = 0;
virtual void keyMessage(const WebString& keySystem, const WebString& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL) = 0;
- virtual void keyNeeded(const WebString& keySystem, const WebString& sessionId, const unsigned char* initData, unsigned initDataLength) = 0;
+ virtual void keyNeeded(const WebString& keySystem, const WebString& sessionId, const unsigned char* initData, unsigned initDataLength)
+ {
+ // FIXME: remove after callers change to pass contentType.
ddorwin 2014/01/13 19:17:49 Should be above 70, right?
acolwell GONE FROM CHROMIUM 2014/01/13 19:19:39 nit: Move FIXME to above method and s/remove/Remov
jrummell 2014/01/13 22:43:44 Done.
jrummell 2014/01/13 22:43:44 Done.
+ keyNeeded(WebString(), initData, initDataLength);
+ }
+ virtual void keyNeeded(const WebString& contentType, const unsigned char* initData, unsigned initDataLength) = 0;
// The returned pointer is valid until closeHelperPlugin() is called.
// Returns 0 if the plugin could not be instantiated.
virtual WebPlugin* createHelperPlugin(const WebString& pluginType, WebFrame*) = 0;
« Source/core/html/HTMLMediaElement.cpp ('K') | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698