OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PresentationConnectionList_h | 5 #ifndef PresentationConnectionList_h |
6 #define PresentationConnectionList_h | 6 #define PresentationConnectionList_h |
7 | 7 |
8 #include "core/dom/ContextLifecycleObserver.h" | 8 #include "core/dom/ContextLifecycleObserver.h" |
9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
11 #include "modules/presentation/PresentationConnection.h" | 11 #include "modules/presentation/PresentationConnection.h" |
12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
13 #include "platform/heap/Heap.h" | 13 #include "platform/heap/Heap.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 // Implements the PresentationConnectionList interface from the Presentation API
from | 17 // Implements the PresentationConnectionList interface from the Presentation API |
18 // which represents set of presentation connections in the set of | 18 // from which represents set of presentation connections in the set of |
19 // presentation controllers. | 19 // presentation controllers. |
20 class MODULES_EXPORT PresentationConnectionList final | 20 class MODULES_EXPORT PresentationConnectionList final |
21 : public EventTargetWithInlineData, | 21 : public EventTargetWithInlineData, |
22 public ContextLifecycleObserver { | 22 public ContextLifecycleObserver { |
23 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnectionList); | 23 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnectionList); |
24 DEFINE_WRAPPERTYPEINFO(); | 24 DEFINE_WRAPPERTYPEINFO(); |
25 | 25 |
26 public: | 26 public: |
27 explicit PresentationConnectionList(ExecutionContext*); | 27 explicit PresentationConnectionList(ExecutionContext*); |
28 ~PresentationConnectionList() = default; | 28 ~PresentationConnectionList() = default; |
(...skipping 19 matching lines...) Expand all Loading... |
48 | 48 |
49 private: | 49 private: |
50 friend class PresentationReceiverTest; | 50 friend class PresentationReceiverTest; |
51 | 51 |
52 HeapVector<Member<PresentationConnection>> m_connections; | 52 HeapVector<Member<PresentationConnection>> m_connections; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // PresentationConnectionList_h | 57 #endif // PresentationConnectionList_h |
OLD | NEW |