| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType); | 101 MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType); |
| 102 | 102 |
| 103 void actionTimerFired(Timer<MediaKeySession>*); | 103 void actionTimerFired(Timer<MediaKeySession>*); |
| 104 | 104 |
| 105 // WebContentDecryptionModuleSession::Client | 105 // WebContentDecryptionModuleSession::Client |
| 106 virtual void message(const unsigned char* message, size_t messageLength, con
st WebURL& destinationURL) OVERRIDE; | 106 virtual void message(const unsigned char* message, size_t messageLength, con
st WebURL& destinationURL) OVERRIDE; |
| 107 virtual void ready() OVERRIDE; | 107 virtual void ready() OVERRIDE; |
| 108 virtual void close() OVERRIDE; | 108 virtual void close() OVERRIDE; |
| 109 virtual void error(MediaKeyErrorCode, unsigned long systemCode) OVERRIDE; | 109 virtual void error(MediaKeyErrorCode, unsigned long systemCode) OVERRIDE; |
| 110 virtual void error(WebContentDecryptionModuleException, unsigned long system
Code, const WebString& errorMessage) OVERRIDE; | 110 virtual void error(WebContentDecryptionModuleException, unsigned long system
Code, const WebString& errorMessage) OVERRIDE; |
| 111 virtual void expirationChanged(double updatedExpiryTimeInMS) OVERRIDE; |
| 111 | 112 |
| 112 ScriptPromise generateRequestInternal(ScriptState*, const String& initDataTy
pe, PassRefPtr<ArrayBuffer> initData); | 113 ScriptPromise generateRequestInternal(ScriptState*, const String& initDataTy
pe, PassRefPtr<ArrayBuffer> initData); |
| 113 ScriptPromise updateInternal(ScriptState*, PassRefPtr<ArrayBuffer> response)
; | 114 ScriptPromise updateInternal(ScriptState*, PassRefPtr<ArrayBuffer> response)
; |
| 114 | 115 |
| 115 // Called by NewSessionResult when the new sesison has been created. | 116 // Called by NewSessionResult when the new sesison has been created. |
| 116 void finishGenerateRequest(); | 117 void finishGenerateRequest(); |
| 117 | 118 |
| 118 String m_keySystem; | 119 String m_keySystem; |
| 119 RefPtrWillBeMember<MediaKeyError> m_error; | 120 RefPtrWillBeMember<MediaKeyError> m_error; |
| 120 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; | 121 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 135 typedef ScriptPromiseProperty<Member<MediaKeySession>, V8UndefinedType, RefP
trWillBeMember<DOMException> > ClosedPromise; | 136 typedef ScriptPromiseProperty<Member<MediaKeySession>, V8UndefinedType, RefP
trWillBeMember<DOMException> > ClosedPromise; |
| 136 Member<ClosedPromise> m_closedPromise; | 137 Member<ClosedPromise> m_closedPromise; |
| 137 | 138 |
| 138 HeapDeque<Member<PendingAction> > m_pendingActions; | 139 HeapDeque<Member<PendingAction> > m_pendingActions; |
| 139 Timer<MediaKeySession> m_actionTimer; | 140 Timer<MediaKeySession> m_actionTimer; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace blink | 143 } // namespace blink |
| 143 | 144 |
| 144 #endif // MediaKeySession_h | 145 #endif // MediaKeySession_h |
| OLD | NEW |