Index: content/browser/renderer_host/websocket_host.h |
diff --git a/content/browser/renderer_host/websocket_host.h b/content/browser/renderer_host/websocket_host.h |
index 21c77dcbbd558fe56d77ca147f3e60f208875779..39c1e41edbed3d56985f1bba437898bfae234c80 100644 |
--- a/content/browser/renderer_host/websocket_host.h |
+++ b/content/browser/renderer_host/websocket_host.h |
@@ -40,10 +40,16 @@ class CONTENT_EXPORT WebSocketHost { |
net::URLRequestContext* url_request_context); |
virtual ~WebSocketHost(); |
+ // The renderer process is going away. |
+ // This function is virtual for testing. |
+ virtual void GoAway(); |
+ |
// General message dispatch. WebSocketDispatcherHost::OnMessageReceived |
// delegates to this method after looking up the |routing_id|. |
virtual bool OnMessageReceived(const IPC::Message& message); |
+ int routing_id() const { return routing_id_; } |
+ |
private: |
// Handlers for each message type, dispatched by OnMessageReceived(), as |
// defined in content/common/websocket_messages.h |