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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType); | 96 MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType); |
97 | 97 |
98 void actionTimerFired(Timer<MediaKeySession>*); | 98 void actionTimerFired(Timer<MediaKeySession>*); |
99 | 99 |
100 // WebContentDecryptionModuleSession::Client | 100 // WebContentDecryptionModuleSession::Client |
101 virtual void message(MessageType, const unsigned char* message, size_t messa
geLength) override; | 101 virtual void message(MessageType, const unsigned char* message, size_t messa
geLength) override; |
102 virtual void message(const unsigned char* message, size_t messageLength, con
st WebURL& destinationURL) override; | 102 virtual void message(const unsigned char* message, size_t messageLength, con
st WebURL& destinationURL) override; |
103 virtual void close() override; | 103 virtual void close() override; |
104 virtual void expirationChanged(double updatedExpiryTimeInMS) override; | 104 virtual void expirationChanged(double updatedExpiryTimeInMS) override; |
| 105 virtual void keysStatusesChange(const WebVector<WebEncryptedMediaKeyInformat
ion>&, bool hasAdditionalUsableKey) override; |
105 | 106 |
106 // Called by NewSessionResult when the new session has been created. | 107 // Called by NewSessionResult when the new session has been created. |
107 void finishGenerateRequest(); | 108 void finishGenerateRequest(); |
108 | 109 |
109 // Called by LoadSessionResult when the session has been loaded. | 110 // Called by LoadSessionResult when the session has been loaded. |
110 void finishLoad(); | 111 void finishLoad(); |
111 | 112 |
112 String m_keySystem; | 113 String m_keySystem; |
113 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; | 114 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |
114 OwnPtr<WebContentDecryptionModuleSession> m_session; | 115 OwnPtr<WebContentDecryptionModuleSession> m_session; |
(...skipping 14 matching lines...) Expand all Loading... |
129 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, RefPtrWillBeMember<DOMException> > ClosedPromise; | 130 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, RefPtrWillBeMember<DOMException> > ClosedPromise; |
130 Member<ClosedPromise> m_closedPromise; | 131 Member<ClosedPromise> m_closedPromise; |
131 | 132 |
132 HeapDeque<Member<PendingAction> > m_pendingActions; | 133 HeapDeque<Member<PendingAction> > m_pendingActions; |
133 Timer<MediaKeySession> m_actionTimer; | 134 Timer<MediaKeySession> m_actionTimer; |
134 }; | 135 }; |
135 | 136 |
136 } // namespace blink | 137 } // namespace blink |
137 | 138 |
138 #endif // MediaKeySession_h | 139 #endif // MediaKeySession_h |
OLD | NEW |