Index: Source/modules/websockets/WorkerThreadableWebSocketChannel.h |
diff --git a/Source/modules/websockets/WorkerThreadableWebSocketChannel.h b/Source/modules/websockets/WorkerThreadableWebSocketChannel.h |
index e8d897e30763bb0c68f4e40393a788af19cee9f7..bce1650884e01e71569c10b00b5ec13b65260b4e 100644 |
--- a/Source/modules/websockets/WorkerThreadableWebSocketChannel.h |
+++ b/Source/modules/websockets/WorkerThreadableWebSocketChannel.h |
@@ -54,7 +54,7 @@ class WorkerGlobalScope; |
class WorkerLoaderProxy; |
class WorkerRunLoop; |
-class WorkerThreadableWebSocketChannel : public RefCounted<WorkerThreadableWebSocketChannel>, public WebSocketChannel { |
+class WorkerThreadableWebSocketChannel FINAL : public RefCounted<WorkerThreadableWebSocketChannel>, public WebSocketChannel { |
WTF_MAKE_FAST_ALLOCATED; |
public: |
static PassRefPtr<WebSocketChannel> create(WorkerGlobalScope* workerGlobalScope, WebSocketChannelClient* client, const String& taskMode, const String& sourceURL, unsigned lineNumber) |
@@ -79,7 +79,7 @@ public: |
// Generated by the bridge. The Peer and its bridge should have identical |
// lifetimes. |
- class Peer : public WebSocketChannelClient { |
+ class Peer FINAL : public WebSocketChannelClient { |
WTF_MAKE_NONCOPYABLE(Peer); WTF_MAKE_FAST_ALLOCATED; |
public: |
// sourceURLAtConnection and lineNumberAtConnection parameters may |
@@ -88,7 +88,7 @@ public: |
{ |
return new Peer(clientWrapper, loaderProxy, context, taskMode, sourceURLAtConnection, lineNumberAtConnection); |
} |
- ~Peer(); |
+ virtual ~Peer(); |
void connect(const KURL&, const String& protocol); |
void send(const String& message); |