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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h

Issue 2236483005: EME: Add new event handler attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 4 years, 3 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: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
index 92a291698a37cb91cdca7bcf557cbd79adeb1fa3..9fbf58e52225b6bbdf923b4eb9c1172d79216fc9 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
@@ -70,12 +70,15 @@ class MediaKeySession final
USING_PRE_FINALIZER(MediaKeySession, dispose);
public:
static MediaKeySession* create(ScriptState*, MediaKeys*, WebEncryptedMediaSessionType);
+
~MediaKeySession() override;
String sessionId() const;
double expiration() const { return m_expiration; }
ScriptPromise closed(ScriptState*);
MediaKeyStatusMap* keyStatuses();
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(keystatuseschange);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
ScriptPromise generateRequest(ScriptState*, const String& initDataType, const DOMArrayPiece& initData);
ScriptPromise load(ScriptState*, const String& sessionId);

Powered by Google App Engine
This is Rietveld 408576698