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

Unified Diff: Source/modules/encryptedmedia/MediaKeyNeededEvent.h

Issue 134663005: Add new needkey event for EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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: Source/modules/encryptedmedia/MediaKeyNeededEvent.h
diff --git a/Source/modules/encryptedmedia/MediaKeyNeededEvent.h b/Source/modules/encryptedmedia/MediaKeyNeededEvent.h
index 910a9d003c9fc384704e65683f14993fab45db23..8104f43594a661d36ec06a3993d92074a4200f80 100644
--- a/Source/modules/encryptedmedia/MediaKeyNeededEvent.h
+++ b/Source/modules/encryptedmedia/MediaKeyNeededEvent.h
@@ -34,6 +34,7 @@ namespace WebCore {
struct MediaKeyNeededEventInit : public EventInit {
MediaKeyNeededEventInit();
+ String contentType;
RefPtr<Uint8Array> initData;
};
@@ -53,12 +54,14 @@ public:
virtual const AtomicString& interfaceName() const OVERRIDE;
+ String contentType() const { return m_contentType; }
Uint8Array* initData() const { return m_initData.get(); }
private:
MediaKeyNeededEvent();
MediaKeyNeededEvent(const AtomicString& type, const MediaKeyNeededEventInit& initializer);
+ String m_contentType;
RefPtr<Uint8Array> m_initData;
};

Powered by Google App Engine
This is Rietveld 408576698