OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PlatformEventDispatcher_h | 5 #ifndef PlatformEventDispatcher_h |
6 #define PlatformEventDispatcher_h | 6 #define PlatformEventDispatcher_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
(...skipping 12 matching lines...) Expand all Loading... | |
23 PlatformEventDispatcher(); | 23 PlatformEventDispatcher(); |
24 | 24 |
25 void notifyControllers(); | 25 void notifyControllers(); |
26 | 26 |
27 virtual void startListening() = 0; | 27 virtual void startListening() = 0; |
28 virtual void stopListening() = 0; | 28 virtual void stopListening() = 0; |
29 | 29 |
30 private: | 30 private: |
31 void purgeControllers(); | 31 void purgeControllers(); |
32 | 32 |
33 #if ENABLE(OILPAN) | 33 WillBeHeapHashSet<RawPtrWillBeWeakMember<PlatformEventController>> m_control lers; |
34 void clearWeakMembers(Visitor*); | |
35 #endif | |
36 | |
37 WillBeHeapVector<PlatformEventController*> m_controllers; | |
38 bool m_needsPurge; | |
39 bool m_isDispatching; | |
haraken
2015/08/19 11:12:51
We cannot simply remove the purge logic. See my co
peria
2015/08/20 09:35:50
Acknowledged.
| |
40 }; | 34 }; |
41 | 35 |
42 } // namespace blink | 36 } // namespace blink |
43 | 37 |
44 #endif // PlatformEventDispatcher_h | 38 #endif // PlatformEventDispatcher_h |
OLD | NEW |