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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 const CompletionCallback& callback) override; | 45 const CompletionCallback& callback) override; |
46 int SendRequest(const HttpRequestHeaders& request_headers, | 46 int SendRequest(const HttpRequestHeaders& request_headers, |
47 HttpResponseInfo* response, | 47 HttpResponseInfo* response, |
48 const CompletionCallback& callback) override; | 48 const CompletionCallback& callback) override; |
49 int ReadResponseHeaders(const CompletionCallback& callback) override; | 49 int ReadResponseHeaders(const CompletionCallback& callback) override; |
50 int ReadResponseBody(IOBuffer* buf, | 50 int ReadResponseBody(IOBuffer* buf, |
51 int buf_len, | 51 int buf_len, |
52 const CompletionCallback& callback) override; | 52 const CompletionCallback& callback) override; |
53 void Close(bool not_reusable) override; | 53 void Close(bool not_reusable) override; |
54 bool IsResponseBodyComplete() const override; | 54 bool IsResponseBodyComplete() const override; |
55 bool CanFindEndOfResponse() const override; | |
56 bool IsConnectionReused() const override; | 55 bool IsConnectionReused() const override; |
57 void SetConnectionReused() override; | 56 void SetConnectionReused() override; |
58 bool IsConnectionReusable() const override; | 57 bool CanReuseConnection() const override; |
59 int64 GetTotalReceivedBytes() const override; | 58 int64 GetTotalReceivedBytes() const override; |
60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 59 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
61 void GetSSLInfo(SSLInfo* ssl_info) override; | 60 void GetSSLInfo(SSLInfo* ssl_info) override; |
62 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 61 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
63 bool IsSpdyHttpStream() const override; | |
64 void Drain(HttpNetworkSession* session) override; | 62 void Drain(HttpNetworkSession* session) override; |
65 void SetPriority(RequestPriority priority) override; | 63 void SetPriority(RequestPriority priority) override; |
66 UploadProgress GetUploadProgress() const override; | 64 UploadProgress GetUploadProgress() const override; |
67 HttpStream* RenewStreamForAuth() override; | 65 HttpStream* RenewStreamForAuth() override; |
68 | 66 |
69 | 67 |
70 // 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 |
71 // have been received. It creates an appropriate subclass of WebSocketStream | 69 // have been received. It creates an appropriate subclass of WebSocketStream |
72 // depending on what extensions were negotiated. This object is unusable after | 70 // depending on what extensions were negotiated. This object is unusable after |
73 // Upgrade() has been called and should be disposed of as soon as possible. | 71 // Upgrade() has been called and should be disposed of as soon as possible. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 scoped_ptr<WebSocketExtensionParams> extension_params_; | 132 scoped_ptr<WebSocketExtensionParams> extension_params_; |
135 | 133 |
136 std::string* failure_message_; | 134 std::string* failure_message_; |
137 | 135 |
138 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 136 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
139 }; | 137 }; |
140 | 138 |
141 } // namespace net | 139 } // namespace net |
142 | 140 |
143 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 141 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
OLD | NEW |