| 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_HTTP_PROXY_CONNECT_REDIRECT_HTTP_STREAM_H_ | 5 #ifndef NET_HTTP_PROXY_CONNECT_REDIRECT_HTTP_STREAM_H_ |
| 6 #define NET_HTTP_PROXY_CONNECT_REDIRECT_HTTP_STREAM_H_ | 6 #define NET_HTTP_PROXY_CONNECT_REDIRECT_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // GetLoadTimingInfo(), or NULL if there is none. Does not take | 23 // GetLoadTimingInfo(), or NULL if there is none. Does not take |
| 24 // ownership of |load_timing_info|. | 24 // ownership of |load_timing_info|. |
| 25 explicit ProxyConnectRedirectHttpStream(LoadTimingInfo* load_timing_info); | 25 explicit ProxyConnectRedirectHttpStream(LoadTimingInfo* load_timing_info); |
| 26 ~ProxyConnectRedirectHttpStream() override; | 26 ~ProxyConnectRedirectHttpStream() override; |
| 27 | 27 |
| 28 // All functions below are expected not to be called except for the | 28 // All functions below are expected not to be called except for the |
| 29 // marked one. | 29 // marked one. |
| 30 | 30 |
| 31 int InitializeStream(const HttpRequestInfo* request_info, | 31 int InitializeStream(const HttpRequestInfo* request_info, |
| 32 RequestPriority priority, | 32 RequestPriority priority, |
| 33 const BoundNetLog& net_log, | 33 const NetLogWithSource& net_log, |
| 34 const CompletionCallback& callback) override; | 34 const CompletionCallback& callback) override; |
| 35 int SendRequest(const HttpRequestHeaders& request_headers, | 35 int SendRequest(const HttpRequestHeaders& request_headers, |
| 36 HttpResponseInfo* response, | 36 HttpResponseInfo* response, |
| 37 const CompletionCallback& callback) override; | 37 const CompletionCallback& callback) override; |
| 38 int ReadResponseHeaders(const CompletionCallback& callback) override; | 38 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 39 int ReadResponseBody(IOBuffer* buf, | 39 int ReadResponseBody(IOBuffer* buf, |
| 40 int buf_len, | 40 int buf_len, |
| 41 const CompletionCallback& callback) override; | 41 const CompletionCallback& callback) override; |
| 42 | 42 |
| 43 // This function may be called. | 43 // This function may be called. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 70 HttpStream* RenewStreamForAuth() override; | 70 HttpStream* RenewStreamForAuth() override; |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 bool has_load_timing_info_; | 73 bool has_load_timing_info_; |
| 74 LoadTimingInfo load_timing_info_; | 74 LoadTimingInfo load_timing_info_; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace net | 77 } // namespace net |
| 78 | 78 |
| 79 #endif // NET_HTTP_PROXY_CONNECT_REDIRECT_HTTP_STREAM_H_ | 79 #endif // NET_HTTP_PROXY_CONNECT_REDIRECT_HTTP_STREAM_H_ |
| OLD | NEW |