| 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 aff172cb86943a48a576a5faa7eb6b13fcada432..b1a0bab3bfd5af67fda8ac7b617c34bca52f9152 100644
|
| --- a/content/browser/renderer_host/websocket_host.cc
|
| +++ b/content/browser/renderer_host/websocket_host.cc
|
| @@ -92,6 +92,7 @@ class WebSocketEventHandler : public net::WebSocketEventInterface {
|
| virtual ChannelState OnFlowControl(int64 quota) OVERRIDE;
|
| virtual ChannelState OnDropChannel(uint16 code,
|
| const std::string& reason) OVERRIDE;
|
| + virtual ChannelState OnFailChannel(const std::string& message) OVERRIDE;
|
|
|
| private:
|
| WebSocketDispatcherHost* const dispatcher_;
|
| @@ -150,6 +151,13 @@ ChannelState WebSocketEventHandler::OnDropChannel(uint16 code,
|
| return StateCast(dispatcher_->DoDropChannel(routing_id_, code, reason));
|
| }
|
|
|
| +ChannelState WebSocketEventHandler::OnFailChannel(const std::string& message) {
|
| + DVLOG(3) << "WebSocketEventHandler::OnFailChannel"
|
| + << " routing_id=" << routing_id_
|
| + << " message=\"" << message << "\"";
|
| + return StateCast(dispatcher_->NotifyFailure(routing_id_, message));
|
| +}
|
| +
|
| } // namespace
|
|
|
| WebSocketHost::WebSocketHost(int routing_id,
|
|
|