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

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

Issue 2440893002: Update MediaKeySession to keep related code blocks together (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d854be9aa6479dad86c61f94e5be7aab0c81f418..4a25ed2ca19f78f72e0d5f18c7dfdf54a7f816eb 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
@@ -88,7 +88,6 @@ class MediaKeySession final
const String& initDataType,
const DOMArrayPiece& initData);
ScriptPromise load(ScriptState*, const String& sessionId);
-
ScriptPromise update(ScriptState*, const DOMArrayPiece& response);
ScriptPromise close(ScriptState*);
ScriptPromise remove(ScriptState*);
@@ -115,6 +114,18 @@ class MediaKeySession final
void actionTimerFired(TimerBase*);
+ // The following perform the asynchronous part of the command referenced.
+ void generateRequestTask(ContentDecryptionModuleResult*,
+ WebEncryptedMediaInitDataType,
+ DOMArrayBuffer* initDataBuffer);
+ void finishGenerateRequest();
+ void loadTask(ContentDecryptionModuleResult*, const String& sessionId);
+ void finishLoad();
+ void updateTask(ContentDecryptionModuleResult*,
+ DOMArrayBuffer* sanitizedResponse);
+ void closeTask(ContentDecryptionModuleResult*);
+ void removeTask(ContentDecryptionModuleResult*);
+
// WebContentDecryptionModuleSession::Client
void message(MessageType,
const unsigned char* message,
@@ -124,12 +135,6 @@ class MediaKeySession final
void keysStatusesChange(const WebVector<WebEncryptedMediaKeyInformation>&,
bool hasAdditionalUsableKey) override;
- // Called by NewSessionResult when the new session has been created.
- void finishGenerateRequest();
-
- // Called by LoadSessionResult when the session has been loaded.
- void finishLoad();
-
Member<GenericEventQueue> m_asyncEventQueue;
std::unique_ptr<WebContentDecryptionModuleSession> m_session;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698