Index: net/websockets/websocket_event_interface.h |
diff --git a/net/websockets/websocket_event_interface.h b/net/websockets/websocket_event_interface.h |
index baba88ce012dd3499fa52b58d6d0633ff13038d7..9ca96f6408cfc8adb6cdcfbfec626913f7d89073 100644 |
--- a/net/websockets/websocket_event_interface.h |
+++ b/net/websockets/websocket_event_interface.h |
@@ -71,6 +71,16 @@ class NET_EXPORT WebSocketEventInterface { |
virtual ChannelState OnDropChannel(uint16 code, const std::string& reason) |
WARN_UNUSED_RESULT = 0; |
+ // Called when the browser fails the channel, as specified in the spec. |
+ // |
+ // The channel should not be used again after OnFailChannel() has been |
+ // called. |
+ // |
+ // This method returns a ChannelState for consistency, but all implementations |
+ // must delete the Channel and return CHANNEL_DELETED. |
+ virtual ChannelState OnFailChannel(const std::string& message) |
+ WARN_UNUSED_RESULT = 0; |
+ |
protected: |
WebSocketEventInterface() {} |