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

Unified Diff: Source/modules/websockets/WebSocket.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: Source/modules/websockets/WebSocket.h
diff --git a/Source/modules/websockets/WebSocket.h b/Source/modules/websockets/WebSocket.h
index 04f913b26b84fb23aac5a85b0e64ac10ed2a7c08..c7cd9083cf155ac3f5cec21ed6b9b2d732316f00 100644
--- a/Source/modules/websockets/WebSocket.h
+++ b/Source/modules/websockets/WebSocket.h
@@ -125,6 +125,7 @@ public:
virtual void didClose(unsigned long unhandledBufferedAmount, ClosingHandshakeCompletionStatus, unsigned short code, const String& reason) OVERRIDE;
private:
+ // FIXME: This should inherit WebCore::EventQueue.
class EventQueue FINAL : public RefCounted<EventQueue> {
public:
static PassRefPtr<EventQueue> create(EventTarget* target) { return adoptRef(new EventQueue(target)); }
@@ -133,7 +134,7 @@ private:
// Dispatches the event if this queue is active.
// Queues the event if this queue is suspended.
// Does nothing otherwise.
- void dispatch(PassRefPtr<Event> /* event */);
+ void dispatch(PassRefPtrWillBeRawPtr<Event> /* event */);
bool isEmpty() const;
@@ -157,7 +158,8 @@ private:
State m_state;
EventTarget* m_target;
- Deque<RefPtr<Event> > m_events;
+ // FIXME: oilpan: This should be HeapDeque once it's implemented.
+ Deque<RefPtrWillBePersistent<Event> > m_events;
Timer<EventQueue> m_resumeTimer;
};

Powered by Google App Engine
This is Rietveld 408576698