Index: Source/modules/encryptedmedia/MediaKeys.h |
diff --git a/Source/modules/encryptedmedia/MediaKeys.h b/Source/modules/encryptedmedia/MediaKeys.h |
index 47e116b44549f820ed887781f235499edec8ed00..b1f525d91883e42bea06f261a5345266a54dc5aa 100644 |
--- a/Source/modules/encryptedmedia/MediaKeys.h |
+++ b/Source/modules/encryptedmedia/MediaKeys.h |
@@ -29,6 +29,7 @@ |
#include "bindings/core/v8/ScriptPromise.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "core/dom/ContextLifecycleObserver.h" |
+#include "platform/Timer.h" |
#include "wtf/Forward.h" |
#include "wtf/text/WTFString.h" |
@@ -53,6 +54,9 @@ public: |
MediaKeySession* createSession(ScriptState*, const String& sessionType); |
+ ScriptPromise setServerCertificate(ScriptState*, ArrayBuffer* serverCertificate); |
+ ScriptPromise setServerCertificate(ScriptState*, ArrayBufferView* serverCertificate); |
+ |
static bool isTypeSupported(const String& keySystem, const String& contentType); |
blink::WebContentDecryptionModule* contentDecryptionModule(); |
@@ -63,11 +67,19 @@ public: |
virtual void contextDestroyed() override; |
private: |
+ class PendingAction; |
friend class MediaKeysInitializer; |
MediaKeys(ExecutionContext*, const String& keySystem, PassOwnPtr<blink::WebContentDecryptionModule>); |
+ ScriptPromise setServerCertificateInternal(ScriptState*, PassRefPtr<ArrayBuffer> initData); |
+ |
+ void timerFired(Timer<MediaKeys>*); |
+ |
const String m_keySystem; |
OwnPtr<blink::WebContentDecryptionModule> m_cdm; |
+ |
+ HeapDeque<Member<PendingAction> > m_pendingActions; |
+ Timer<MediaKeys> m_timer; |
}; |
} // namespace blink |