| Index: content/browser/renderer_host/websocket_host.cc
|
| diff --git a/content/browser/renderer_host/websocket_host.cc b/content/browser/renderer_host/websocket_host.cc
|
| index 7f6391803724443ca9814127df14f59ba346edcf..f778f06f0146b58d62e44fef5ce022dab6e0c189 100644
|
| --- a/content/browser/renderer_host/websocket_host.cc
|
| +++ b/content/browser/renderer_host/websocket_host.cc
|
| @@ -17,6 +17,7 @@
|
| #include "net/http/http_util.h"
|
| #include "net/ssl/ssl_info.h"
|
| #include "net/websockets/websocket_channel.h"
|
| +#include "net/websockets/websocket_errors.h"
|
| #include "net/websockets/websocket_event_interface.h"
|
| #include "net/websockets/websocket_frame.h" // for WebSocketFrameHeader::OpCode
|
| #include "net/websockets/websocket_handshake_request_info.h"
|
| @@ -330,6 +331,10 @@ WebSocketHost::WebSocketHost(int routing_id,
|
|
|
| WebSocketHost::~WebSocketHost() {}
|
|
|
| +void WebSocketHost::GoAway() {
|
| + OnDropChannel(false, static_cast<uint16>(net::kWebSocketErrorGoingAway), "");
|
| +}
|
| +
|
| bool WebSocketHost::OnMessageReceived(const IPC::Message& message) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(WebSocketHost, message)
|
|
|