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

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

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.cpp
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
index 44e1300d8be7720ddca55493e7edd5c0731d1f5b..9c9e541e6788b2da6745d79838496872059ea404 100644
--- a/Source/modules/websockets/WebSocket.cpp
+++ b/Source/modules/websockets/WebSocket.cpp
@@ -71,7 +71,7 @@ WebSocket::EventQueue::EventQueue(EventTarget* target)
WebSocket::EventQueue::~EventQueue() { stop(); }
-void WebSocket::EventQueue::dispatch(PassRefPtr<Event> event)
+void WebSocket::EventQueue::dispatch(PassRefPtrWillBeRawPtr<Event> event)
{
switch (m_state) {
case Active:
@@ -127,7 +127,7 @@ void WebSocket::EventQueue::dispatchQueuedEvents()
RefPtr<EventQueue> protect(this);
- Deque<RefPtr<Event> > events;
+ Deque<RefPtrWillBePersistent<Event> > events;
events.swap(m_events);
while (!events.isEmpty()) {
if (m_state == Stopped || m_state == Suspended)

Powered by Google App Engine
This is Rietveld 408576698