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

Unified Diff: Source/core/events/DOMWindowEventQueue.h

Issue 331623002: Oilpan: Prepare to move EventQueue and its subclasses to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/events/DOMWindowEventQueue.cpp » ('j') | Source/core/html/track/TextTrackList.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/DOMWindowEventQueue.h
diff --git a/Source/core/events/DOMWindowEventQueue.h b/Source/core/events/DOMWindowEventQueue.h
index 96ccddddb38f3f385c5865154a875c996bf0dad9..443f2876bc6ac069aa911e163861c65a58d2ae55 100644
--- a/Source/core/events/DOMWindowEventQueue.h
+++ b/Source/core/events/DOMWindowEventQueue.h
@@ -40,12 +40,19 @@ class DOMWindowEventQueueTimer;
class Node;
class ExecutionContext;
-class DOMWindowEventQueue FINAL : public RefCounted<DOMWindowEventQueue>, public EventQueue {
+#if ENABLE(OILPAN)
+#define DOMWINDOWEVENTQUEUE_BASE_CLASSES public EventQueue
+#else
+#define DOMWINDOWEVENTQUEUE_BASE_CLASSES public RefCounted<DOMWindowEventQueue>, public EventQueue
+#endif
+
+class DOMWindowEventQueue FINAL : DOMWINDOWEVENTQUEUE_BASE_CLASSES {
public:
- static PassRefPtr<DOMWindowEventQueue> create(ExecutionContext*);
+ static PassRefPtrWillBeRawPtr<DOMWindowEventQueue> create(ExecutionContext*);
virtual ~DOMWindowEventQueue();
// EventQueue
+ virtual void trace(Visitor*) OVERRIDE;
virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE;
virtual bool cancelEvent(Event*) OVERRIDE;
virtual void close() OVERRIDE;
@@ -56,9 +63,8 @@ private:
void pendingEventTimerFired();
void dispatchEvent(PassRefPtrWillBeRawPtr<Event>);
- OwnPtr<DOMWindowEventQueueTimer> m_pendingEventTimer;
- // FIXME: oilpan: This should be HeapListHashSet once it's implemented.
- ListHashSet<RefPtrWillBePersistent<Event>, 16> m_queuedEvents;
+ OwnPtrWillBeMember<DOMWindowEventQueueTimer> m_pendingEventTimer;
+ WillBeHeapListHashSet<RefPtrWillBeMember<Event>, 16> m_queuedEvents;
bool m_isClosed;
friend class DOMWindowEventQueueTimer;
« no previous file with comments | « no previous file | Source/core/events/DOMWindowEventQueue.cpp » ('j') | Source/core/html/track/TextTrackList.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698