| Index: Source/modules/encryptedmedia/MediaKeySession.h
|
| diff --git a/Source/modules/encryptedmedia/MediaKeySession.h b/Source/modules/encryptedmedia/MediaKeySession.h
|
| index 6873a0f83c5e6485559a3e7ffa8e0767d5fef3af..6a5451dc332d140cec780a04292a5fa8d7e48183 100644
|
| --- a/Source/modules/encryptedmedia/MediaKeySession.h
|
| +++ b/Source/modules/encryptedmedia/MediaKeySession.h
|
| @@ -64,7 +64,7 @@ public:
|
| void setError(MediaKeyError*);
|
| MediaKeyError* error() { return m_error.get(); }
|
|
|
| - void initializeNewSession(const String& mimeType, Uint8Array* initData);
|
| + void initializeNewSession(const String& mimeType, const Uint8Array& initData);
|
| void update(Uint8Array* response, ExceptionState&);
|
| void release(ExceptionState&);
|
|
|
| @@ -75,7 +75,6 @@ public:
|
|
|
| private:
|
| MediaKeySession(ExecutionContext*, ContentDecryptionModule*, MediaKeys*);
|
| - void initializeNewSessionTimerFired(Timer<MediaKeySession>*);
|
| void updateTimerFired(Timer<MediaKeySession>*);
|
|
|
| // ContentDecryptionModuleSessionClient
|
| @@ -91,17 +90,7 @@ private:
|
| // Used to remove the reference from the parent MediaKeys when close()'d.
|
| MediaKeys* m_keys;
|
|
|
| - // 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<InitializeNewSessionData> m_pendingInitializeNewSessionData;
|
| - Timer<MediaKeySession> m_initializeNewSessionTimer;
|
| -
|
| - Deque<RefPtr<Uint8Array> > m_pendingKeys;
|
| + Deque<RefPtr<Uint8Array> > m_pendingUpdates;
|
| Timer<MediaKeySession> m_updateTimer;
|
| };
|
|
|
|
|