OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef SourceBufferList_h | 31 #ifndef SourceBufferList_h |
32 #define SourceBufferList_h | 32 #define SourceBufferList_h |
33 | 33 |
34 #include "modules/EventTargetModules.h" | 34 #include "modules/EventTargetModules.h" |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "wtf/Vector.h" | |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
40 class SourceBuffer; | 39 class SourceBuffer; |
41 class GenericEventQueue; | 40 class GenericEventQueue; |
42 | 41 |
43 class SourceBufferList final : public RefCountedGarbageCollectedWillBeGarbageCol
lectedFinalized<SourceBufferList>, public EventTargetWithInlineData { | 42 class SourceBufferList final : public RefCountedGarbageCollectedWillBeGarbageCol
lectedFinalized<SourceBufferList>, public EventTargetWithInlineData { |
44 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
ourceBufferList>); | 43 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
ourceBufferList>); |
45 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBufferList); | 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBufferList); |
(...skipping 18 matching lines...) Expand all Loading... |
65 virtual const AtomicString& interfaceName() const override; | 64 virtual const AtomicString& interfaceName() const override; |
66 virtual ExecutionContext* executionContext() const override; | 65 virtual ExecutionContext* executionContext() const override; |
67 | 66 |
68 virtual void trace(Visitor*) override; | 67 virtual void trace(Visitor*) override; |
69 | 68 |
70 private: | 69 private: |
71 SourceBufferList(ExecutionContext*, GenericEventQueue*); | 70 SourceBufferList(ExecutionContext*, GenericEventQueue*); |
72 | 71 |
73 void scheduleEvent(const AtomicString&); | 72 void scheduleEvent(const AtomicString&); |
74 | 73 |
75 ExecutionContext* m_executionContext; | 74 RawPtrWillBeMember<ExecutionContext> m_executionContext; |
76 GenericEventQueue* m_asyncEventQueue; | 75 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |
77 | 76 |
78 HeapVector<Member<SourceBuffer> > m_list; | 77 HeapVector<Member<SourceBuffer>> m_list; |
79 }; | 78 }; |
80 | 79 |
81 } // namespace blink | 80 } // namespace blink |
82 | 81 |
83 #endif // SourceBufferList_h | 82 #endif // SourceBufferList_h |
OLD | NEW |