| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool using_proxy, | 38 bool using_proxy, |
| 39 std::vector<std::string> requested_sub_protocols, | 39 std::vector<std::string> requested_sub_protocols, |
| 40 std::vector<std::string> requested_extensions, | 40 std::vector<std::string> requested_extensions, |
| 41 WebSocketStreamRequest* request); | 41 WebSocketStreamRequest* request); |
| 42 | 42 |
| 43 ~WebSocketBasicHandshakeStream() override; | 43 ~WebSocketBasicHandshakeStream() override; |
| 44 | 44 |
| 45 // HttpStreamBase methods | 45 // HttpStreamBase methods |
| 46 int InitializeStream(const HttpRequestInfo* request_info, | 46 int InitializeStream(const HttpRequestInfo* request_info, |
| 47 RequestPriority priority, | 47 RequestPriority priority, |
| 48 const BoundNetLog& net_log, | 48 const NetLogWithSource& net_log, |
| 49 const CompletionCallback& callback) override; | 49 const CompletionCallback& callback) override; |
| 50 int SendRequest(const HttpRequestHeaders& request_headers, | 50 int SendRequest(const HttpRequestHeaders& request_headers, |
| 51 HttpResponseInfo* response, | 51 HttpResponseInfo* response, |
| 52 const CompletionCallback& callback) override; | 52 const CompletionCallback& callback) override; |
| 53 int ReadResponseHeaders(const CompletionCallback& callback) override; | 53 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 54 int ReadResponseBody(IOBuffer* buf, | 54 int ReadResponseBody(IOBuffer* buf, |
| 55 int buf_len, | 55 int buf_len, |
| 56 const CompletionCallback& callback) override; | 56 const CompletionCallback& callback) override; |
| 57 void Close(bool not_reusable) override; | 57 void Close(bool not_reusable) override; |
| 58 bool IsResponseBodyComplete() const override; | 58 bool IsResponseBodyComplete() const override; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 std::unique_ptr<WebSocketExtensionParams> extension_params_; | 141 std::unique_ptr<WebSocketExtensionParams> extension_params_; |
| 142 | 142 |
| 143 WebSocketStreamRequest* stream_request_; | 143 WebSocketStreamRequest* stream_request_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 145 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace net | 148 } // namespace net |
| 149 | 149 |
| 150 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 150 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
| OLD | NEW |