Index: Source/modules/encryptedmedia/MediaKeySession.h |
diff --git a/Source/modules/encryptedmedia/MediaKeySession.h b/Source/modules/encryptedmedia/MediaKeySession.h |
index 31c1a202759f25c5051e316d90a397139bba4dcd..12e47554db32af493b8243bcbee9e18c75c30533 100644 |
--- a/Source/modules/encryptedmedia/MediaKeySession.h |
+++ b/Source/modules/encryptedmedia/MediaKeySession.h |
@@ -74,6 +74,7 @@ public: |
ScriptPromise generateRequest(ScriptState*, const String& initDataType, ArrayBuffer* initData); |
ScriptPromise generateRequest(ScriptState*, const String& initDataType, ArrayBufferView* initData); |
+ ScriptPromise load(ScriptState*, const String& sessionId); |
void setError(MediaKeyError*); |
MediaKeyError* error() { return m_error.get(); } |
@@ -97,6 +98,7 @@ public: |
private: |
class PendingAction; |
friend class NewSessionResult; |
+ friend class LoadSessionResult; |
MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType); |
@@ -112,9 +114,12 @@ private: |
ScriptPromise generateRequestInternal(ScriptState*, const String& initDataType, PassRefPtr<ArrayBuffer> initData); |
ScriptPromise updateInternal(ScriptState*, PassRefPtr<ArrayBuffer> response); |
- // Called by NewSessionResult when the new sesison has been created. |
+ // Called by NewSessionResult when the new session has been created. |
void finishGenerateRequest(); |
+ // Called by LoadSessionResult when the session has been loaded. |
+ void finishLoadSession(); |
sandersd (OOO until July 31)
2014/10/08 18:18:22
finishLoad() to be consistent?
jrummell
2014/10/08 21:13:20
Done.
|
+ |
String m_keySystem; |
RefPtrWillBeMember<MediaKeyError> m_error; |
OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |