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

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

Issue 111043004: Update MediaKeySession method names to latest EME spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/MediaKeySession.h
diff --git a/Source/modules/encryptedmedia/MediaKeySession.h b/Source/modules/encryptedmedia/MediaKeySession.h
index d90ef744257b1c10ca711292fca580c4c2608fad..45072199301fd42012c494d5aba33a931f055356 100644
--- a/Source/modules/encryptedmedia/MediaKeySession.h
+++ b/Source/modules/encryptedmedia/MediaKeySession.h
@@ -64,9 +64,9 @@ public:
void setError(MediaKeyError*);
MediaKeyError* error() { return m_error.get(); }
- void generateKeyRequest(const String& mimeType, Uint8Array* initData);
+ void initializeNewSession(const String& mimeType, Uint8Array* initData);
void update(Uint8Array* response, ExceptionState&);
- void close();
+ void release(ExceptionState&);
void enqueueEvent(PassRefPtr<Event>);
@@ -79,7 +79,7 @@ public:
private:
MediaKeySession(ExecutionContext*, ContentDecryptionModule*, MediaKeys*);
- void keyRequestTimerFired(Timer<MediaKeySession>*);
+ void initializeNewSessionTimerFired(Timer<MediaKeySession>*);
void updateTimerFired(Timer<MediaKeySession>*);
// ContentDecryptionModuleSessionClient
@@ -94,13 +94,15 @@ private:
// Used to remove the reference from the parent MediaKeys when close()'d.
MediaKeys* m_keys;
- struct PendingKeyRequest {
- PendingKeyRequest(const String& mimeType, Uint8Array* initData) : mimeType(mimeType), initData(initData) { }
+ // FIXME: Check whether |initData| can be changed by JS. Maybe we should not pass it as a pointer.
+ // FIXME: Move the queue and timer to MediaKeys.
+ struct InitializeNewSessionData {
+ InitializeNewSessionData(const String& mimeType, Uint8Array* initData) : mimeType(mimeType), initData(initData) { }
String mimeType;
RefPtr<Uint8Array> initData;
};
- Deque<PendingKeyRequest> m_pendingKeyRequests;
- Timer<MediaKeySession> m_keyRequestTimer;
+ Deque<InitializeNewSessionData> m_pendingInitializeNewSessionData;
+ Timer<MediaKeySession> m_initializeNewSessionTimer;
Deque<RefPtr<Uint8Array> > m_pendingKeys;
Timer<MediaKeySession> m_updateTimer;
« no previous file with comments | « no previous file | Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698