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