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

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

Issue 397463005: Change EME WebIDL to use ArrayBuffer/ArrayBufferView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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/modules/encryptedmedia/MediaKeySession.idl ('k') | Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/MediaKeys.h
diff --git a/Source/modules/encryptedmedia/MediaKeys.h b/Source/modules/encryptedmedia/MediaKeys.h
index a83f9e74d05621587c3f4bb19fbac7b549388cfc..53acca5a36d02b05eba7106e5857de2787492c6a 100644
--- a/Source/modules/encryptedmedia/MediaKeys.h
+++ b/Source/modules/encryptedmedia/MediaKeys.h
@@ -52,7 +52,8 @@ public:
const String& keySystem() const { return m_keySystem; }
- ScriptPromise createSession(ScriptState*, const String& initDataType, Uint8Array* initData, const String& sessionType);
+ ScriptPromise createSession(ScriptState*, const String& initDataType, ArrayBuffer* initData, const String& sessionType);
+ ScriptPromise createSession(ScriptState*, const String& initDataType, ArrayBufferView* initData, const String& sessionType);
static bool isTypeSupported(const String& keySystem, const String& contentType);
@@ -67,6 +68,8 @@ private:
friend class MediaKeysInitializer;
MediaKeys(ExecutionContext*, const String& keySystem, PassOwnPtr<blink::WebContentDecryptionModule>);
+ ScriptPromise createSessionInternal(ScriptState*, const String& initDataType, PassRefPtr<ArrayBuffer> initData, const String& sessionType);
+
const String m_keySystem;
OwnPtr<blink::WebContentDecryptionModule> m_cdm;
};
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeySession.idl ('k') | Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698