Index: Source/modules/websockets/WebSocket.h |
diff --git a/Source/modules/websockets/WebSocket.h b/Source/modules/websockets/WebSocket.h |
index 773c2ec1b1dfbe9277074d3f29ab9c35b5f26e64..cbda09b4ea09b7fe231ec523e0dd3e9fbed8a713 100644 |
--- a/Source/modules/websockets/WebSocket.h |
+++ b/Source/modules/websockets/WebSocket.h |
@@ -38,7 +38,7 @@ |
#include "core/events/ThreadLocalEventNames.h" |
#include "modules/websockets/WebSocketChannel.h" |
#include "modules/websockets/WebSocketChannelClient.h" |
-#include "platform/Timer.h" |
+#include "platform/AsyncMethodRunner.h" |
#include "weborigin/KURL.h" |
#include "wtf/Forward.h" |
#include "wtf/OwnPtr.h" |
@@ -126,9 +126,9 @@ private: |
// not. |
void closeInternal(int, const String&, ExceptionState&); |
- // Calls unsetPendingActivity(). Used for m_timerForDeferredDropProtection |
- // to drop the reference for protection asynchronously. |
- void dropProtection(Timer<WebSocket>*); |
+ // Calls unsetPendingActivity(). Used with m_dropProtectionRunner to drop |
+ // the reference for protection asynchronously. |
+ void dropProtection(); |
size_t getFramingOverhead(size_t payloadSize); |
@@ -160,7 +160,7 @@ private: |
// stop() to prevent dispatchEvent() from being called in such handlers. |
bool m_stopped; |
- Timer<WebSocket> m_timerForDeferredDropProtection; |
+ AsyncMethodRunner<WebSocket> m_dropProtectionRunner; |
}; |
} // namespace WebCore |