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

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

Issue 543173002: Implement MediaKeySession.generateRequest() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 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
« 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 d7f669d91f4c269e97c005999e7981e6ced2629c..e31233128d3703d29eff9cb56a8b688d27a658b0 100644
--- a/Source/modules/encryptedmedia/MediaKeys.h
+++ b/Source/modules/encryptedmedia/MediaKeys.h
@@ -37,6 +37,7 @@ namespace blink {
class ExceptionState;
class ExecutionContext;
class HTMLMediaElement;
+class MediaKeySession;
class ScriptState;
class WebContentDecryptionModule;
@@ -50,8 +51,7 @@ public:
const String& keySystem() const { return m_keySystem; }
- ScriptPromise createSession(ScriptState*, const String& initDataType, ArrayBuffer* initData, const String& sessionType);
- ScriptPromise createSession(ScriptState*, const String& initDataType, ArrayBufferView* initData, const String& sessionType);
+ MediaKeySession* createSession(ScriptState*, const String& sessionType);
static bool isTypeSupported(const String& keySystem, const String& contentType);
@@ -66,8 +66,6 @@ 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