Chromium Code Reviews| Index: net/websockets/websocket_channel.h |
| diff --git a/net/websockets/websocket_channel.h b/net/websockets/websocket_channel.h |
| index 61f191af97839b03fdc0c4cd3949cba92aef793a..4377869f7a6a136340dfc8c2d1c7e041c017ec92 100644 |
| --- a/net/websockets/websocket_channel.h |
| +++ b/net/websockets/websocket_channel.h |
| @@ -153,7 +153,7 @@ class NET_EXPORT WebSocketChannel { |
| // Failure callback from WebSocketStream::CreateAndConnectStream(). Reports |
| // failure to the event interface. May delete |this|. |
| - void OnConnectFailure(uint16 websocket_error); |
| + void OnConnectFailure(const std::string& message); |
| // Returns true if state_ is SEND_CLOSED, CLOSE_WAIT or CLOSED. |
| bool InClosingState() const; |
| @@ -199,6 +199,8 @@ class NET_EXPORT WebSocketChannel { |
| const scoped_refptr<IOBuffer>& buffer, |
| size_t size) WARN_UNUSED_RESULT; |
| + // TODO(yhirano): This is not the "Fail" operation but the (unclean) "Close" |
| + // operation. Needs renaming & refactoring. |
|
Adam Rice
2013/12/06 07:02:31
It is certainly intended to implement the "Fail th
yhirano
2013/12/06 08:54:56
My understanding is that "_Fail the WebSocket Conn
Adam Rice
2013/12/09 01:21:41
The spec goes on to say "In this case, it MAY use
yhirano
2013/12/09 06:11:14
Discussed offline.
I deleted the comment.
http://c
|
| // Performs the "Fail the WebSocket Connection" operation as defined in |
| // RFC6455. The supplied code and reason are sent back to the renderer in an |
| // OnDropChannel message. If state_ is CONNECTED then a Close message is sent |