| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 ScriptPromise remove(ScriptState*); | 82 ScriptPromise remove(ScriptState*); |
| 83 | 83 |
| 84 // EventTarget | 84 // EventTarget |
| 85 virtual const AtomicString& interfaceName() const override; | 85 virtual const AtomicString& interfaceName() const override; |
| 86 virtual ExecutionContext* executionContext() const override; | 86 virtual ExecutionContext* executionContext() const override; |
| 87 | 87 |
| 88 // ActiveDOMObject | 88 // ActiveDOMObject |
| 89 virtual bool hasPendingActivity() const override; | 89 virtual bool hasPendingActivity() const override; |
| 90 virtual void stop() override; | 90 virtual void stop() override; |
| 91 | 91 |
| 92 EAGERLY_SWEEP(); |
| 92 DECLARE_VIRTUAL_TRACE(); | 93 DECLARE_VIRTUAL_TRACE(); |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 class PendingAction; | 96 class PendingAction; |
| 96 friend class NewSessionResultPromise; | 97 friend class NewSessionResultPromise; |
| 97 friend class LoadSessionResultPromise; | 98 friend class LoadSessionResultPromise; |
| 98 | 99 |
| 99 MediaKeySession(ScriptState*, MediaKeys*, WebEncryptedMediaSessionType); | 100 MediaKeySession(ScriptState*, MediaKeys*, WebEncryptedMediaSessionType); |
| 100 | 101 |
| 101 void actionTimerFired(Timer<MediaKeySession>*); | 102 void actionTimerFired(Timer<MediaKeySession>*); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 132 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, Member<DOMException>> ClosedPromise; | 133 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, Member<DOMException>> ClosedPromise; |
| 133 Member<ClosedPromise> m_closedPromise; | 134 Member<ClosedPromise> m_closedPromise; |
| 134 | 135 |
| 135 HeapDeque<Member<PendingAction>> m_pendingActions; | 136 HeapDeque<Member<PendingAction>> m_pendingActions; |
| 136 Timer<MediaKeySession> m_actionTimer; | 137 Timer<MediaKeySession> m_actionTimer; |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace blink | 140 } // namespace blink |
| 140 | 141 |
| 141 #endif // MediaKeySession_h | 142 #endif // MediaKeySession_h |
| OLD | NEW |