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

Unified Diff: Source/core/html/HTMLMediaElement.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
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 8b5b03a8ea5c634646226f86162d0f6e61a72eac..2c687bb2bd08bc7b5f3c446a021af514e6d5879a 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -147,7 +147,7 @@ public:
void closeMediaSource();
void durationChanged(double duration);
- // encrypted media extensions
+ // encrypted media extensions (v0.1b)
void webkitGenerateKeyRequest(const String& keySystem, PassRefPtr<Uint8Array> initData, ExceptionState&);
void webkitGenerateKeyRequest(const String& keySystem, ExceptionState&);
void webkitAddKey(const String& keySystem, PassRefPtr<Uint8Array> key, PassRefPtr<Uint8Array> initData, const String& sessionId, ExceptionState&);
@@ -159,8 +159,10 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitkeymessage);
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitneedkey);
+ // encrypted media extensions (WD)
MediaKeys* mediaKeys() const { return m_mediaKeys.get(); }
void setMediaKeys(MediaKeys*);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(needkey);
// controls
bool controls() const;
@@ -358,8 +360,7 @@ private:
virtual void mediaPlayerKeyAdded(const String& keySystem, const String& sessionId) OVERRIDE FINAL;
virtual void mediaPlayerKeyError(const String& keySystem, const String& sessionId, MediaPlayerClient::MediaKeyErrorCode, unsigned short systemCode) OVERRIDE FINAL;
virtual void mediaPlayerKeyMessage(const String& keySystem, const String& sessionId, const unsigned char* message, unsigned messageLength, const KURL& defaultURL) OVERRIDE FINAL;
- virtual bool mediaPlayerKeyNeeded(const String& keySystem, const String& sessionId, const unsigned char* initData, unsigned initDataLength) OVERRIDE FINAL;
- virtual bool mediaPlayerKeyNeeded(Uint8Array*) OVERRIDE FINAL;
+ virtual bool mediaPlayerKeyNeeded(const String& contentType, const unsigned char* initData, unsigned initDataLength) OVERRIDE FINAL;
virtual CORSMode mediaPlayerCORSMode() const OVERRIDE FINAL;
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698