Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(838)

Unified Diff: Source/core/frame/PlatformEventDispatcher.h

Issue 619383002: Move PlatformEventDispatcher implementations to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix non-Oilpan allocation of DeviceLightDispatcher singleton Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/frame/PlatformEventDispatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/PlatformEventDispatcher.h
diff --git a/Source/core/frame/PlatformEventDispatcher.h b/Source/core/frame/PlatformEventDispatcher.h
index d05ddc9fc5a8f342fba0326b303bcf1f017cac69..7bed295b789d08a21e2484759feeb6fe3e3ac008 100644
--- a/Source/core/frame/PlatformEventDispatcher.h
+++ b/Source/core/frame/PlatformEventDispatcher.h
@@ -11,14 +11,15 @@
namespace blink {
class PlatformEventController;
-class PlatformEventDispatcher {
+class PlatformEventDispatcher : public GarbageCollectedMixin {
public:
void addController(PlatformEventController*);
void removeController(PlatformEventController*);
+ virtual void trace(Visitor*);
+
protected:
PlatformEventDispatcher();
- virtual ~PlatformEventDispatcher();
void notifyControllers();
@@ -28,7 +29,11 @@ protected:
private:
void purgeControllers();
- WillBePersistentHeapVector<RawPtrWillBeMember<PlatformEventController> > m_controllers;
+#if ENABLE(OILPAN)
+ void clearWeakMembers(Visitor*);
+#endif
+
+ WillBeHeapVector<PlatformEventController*> m_controllers;
bool m_needsPurge;
bool m_isDispatching;
};
« no previous file with comments | « no previous file | Source/core/frame/PlatformEventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698