| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 DECLARE_VIRTUAL_TRACE(); | 97 DECLARE_VIRTUAL_TRACE(); |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 class PendingAction; | 100 class PendingAction; |
| 101 friend class NewSessionResultPromise; | 101 friend class NewSessionResultPromise; |
| 102 friend class LoadSessionResultPromise; | 102 friend class LoadSessionResultPromise; |
| 103 | 103 |
| 104 MediaKeySession(ScriptState*, MediaKeys*, WebEncryptedMediaSessionType); | 104 MediaKeySession(ScriptState*, MediaKeys*, WebEncryptedMediaSessionType); |
| 105 void dispose(); | 105 void dispose(); |
| 106 | 106 |
| 107 void actionTimerFired(Timer<MediaKeySession>*); | 107 void actionTimerFired(TimerBase*); |
| 108 | 108 |
| 109 // WebContentDecryptionModuleSession::Client | 109 // WebContentDecryptionModuleSession::Client |
| 110 void message(MessageType, const unsigned char* message, size_t messageLength
) override; | 110 void message(MessageType, const unsigned char* message, size_t messageLength
) override; |
| 111 void close() override; | 111 void close() override; |
| 112 void expirationChanged(double updatedExpiryTimeInMS) override; | 112 void expirationChanged(double updatedExpiryTimeInMS) override; |
| 113 void keysStatusesChange(const WebVector<WebEncryptedMediaKeyInformation>&, b
ool hasAdditionalUsableKey) override; | 113 void keysStatusesChange(const WebVector<WebEncryptedMediaKeyInformation>&, b
ool hasAdditionalUsableKey) override; |
| 114 | 114 |
| 115 // Called by NewSessionResult when the new session has been created. | 115 // Called by NewSessionResult when the new session has been created. |
| 116 void finishGenerateRequest(); | 116 void finishGenerateRequest(); |
| 117 | 117 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 138 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, Member<DOMException>> ClosedPromise; | 138 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, Member<DOMException>> ClosedPromise; |
| 139 Member<ClosedPromise> m_closedPromise; | 139 Member<ClosedPromise> m_closedPromise; |
| 140 | 140 |
| 141 HeapDeque<Member<PendingAction>> m_pendingActions; | 141 HeapDeque<Member<PendingAction>> m_pendingActions; |
| 142 Timer<MediaKeySession> m_actionTimer; | 142 Timer<MediaKeySession> m_actionTimer; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| 146 | 146 |
| 147 #endif // MediaKeySession_h | 147 #endif // MediaKeySession_h |
| OLD | NEW |