OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual int ReadResponseBody(IOBuffer* buf, | 49 virtual int ReadResponseBody(IOBuffer* buf, |
50 int buf_len, | 50 int buf_len, |
51 const CompletionCallback& callback) OVERRIDE; | 51 const CompletionCallback& callback) OVERRIDE; |
52 virtual void Close(bool not_reusable) OVERRIDE; | 52 virtual void Close(bool not_reusable) OVERRIDE; |
53 virtual bool IsResponseBodyComplete() const OVERRIDE; | 53 virtual bool IsResponseBodyComplete() const OVERRIDE; |
54 virtual bool CanFindEndOfResponse() const OVERRIDE; | 54 virtual bool CanFindEndOfResponse() const OVERRIDE; |
55 virtual bool IsConnectionReused() const OVERRIDE; | 55 virtual bool IsConnectionReused() const OVERRIDE; |
56 virtual void SetConnectionReused() OVERRIDE; | 56 virtual void SetConnectionReused() OVERRIDE; |
57 virtual bool IsConnectionReusable() const OVERRIDE; | 57 virtual bool IsConnectionReusable() const OVERRIDE; |
58 virtual int64 GetTotalReceivedBytes() const OVERRIDE; | 58 virtual int64 GetTotalReceivedBytes() const OVERRIDE; |
59 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const | 59 virtual bool GetLoadTimingInfo( |
60 OVERRIDE; | 60 LoadTimingInfo* load_timing_info) const OVERRIDE; |
61 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 61 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
62 virtual void GetSSLCertRequestInfo( | 62 virtual void GetSSLCertRequestInfo( |
63 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 63 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
64 virtual bool IsSpdyHttpStream() const OVERRIDE; | 64 virtual bool IsSpdyHttpStream() const OVERRIDE; |
65 virtual void Drain(HttpNetworkSession* session) OVERRIDE; | 65 virtual void Drain(HttpNetworkSession* session) OVERRIDE; |
66 virtual void SetPriority(RequestPriority priority) OVERRIDE; | 66 virtual void SetPriority(RequestPriority priority) OVERRIDE; |
67 | 67 |
68 // This is called from the top level once correct handshake response headers | 68 // This is called from the top level once correct handshake response headers |
69 // have been received. It creates an appropriate subclass of WebSocketStream | 69 // have been received. It creates an appropriate subclass of WebSocketStream |
70 // depending on what extensions were negotiated. This object is unusable after | 70 // depending on what extensions were negotiated. This object is unusable after |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped_ptr<WebSocketExtensionParams> extension_params_; | 132 scoped_ptr<WebSocketExtensionParams> extension_params_; |
133 | 133 |
134 std::string failure_message_; | 134 std::string failure_message_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 136 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace net | 139 } // namespace net |
140 | 140 |
141 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 141 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
OLD | NEW |