OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HTTP_STREAM_REQUEST_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_REQUEST_H_ |
6 #define NET_HTTP_HTTP_STREAM_REQUEST_H_ | 6 #define NET_HTTP_HTTP_STREAM_REQUEST_H_ |
7 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ProxyInfo* proxy_info() const; | 100 ProxyInfo* proxy_info() const; |
101 SSLConfig* ssl_config() const; | 101 SSLConfig* ssl_config() const; |
102 | 102 |
103 // Callbacks to the delegate. | 103 // Callbacks to the delegate. |
104 void OnStreamReadyCallback(); | 104 void OnStreamReadyCallback(); |
105 void OnStreamFailedCallback(int result); | 105 void OnStreamFailedCallback(int result); |
106 void OnCertificateErrorCallback(int result, const SSLInfo& ssl_info); | 106 void OnCertificateErrorCallback(int result, const SSLInfo& ssl_info); |
107 void OnNeedsProxyAuthCallback(const HttpResponseInfo& response_info, | 107 void OnNeedsProxyAuthCallback(const HttpResponseInfo& response_info, |
108 HttpAuthController* auth_controller); | 108 HttpAuthController* auth_controller); |
109 void OnNeedsClientAuthCallback(SSLCertRequestInfo* cert_info); | 109 void OnNeedsClientAuthCallback(SSLCertRequestInfo* cert_info); |
| 110 void OnHttpsProxyTunnelResponseCallback(const HttpResponseInfo& response_info, |
| 111 HttpStream* stream); |
110 void OnPreconnectsComplete(int result); | 112 void OnPreconnectsComplete(int result); |
111 | 113 |
112 void OnIOComplete(int result); | 114 void OnIOComplete(int result); |
113 int RunLoop(int result); | 115 int RunLoop(int result); |
114 int DoLoop(int result); | 116 int DoLoop(int result); |
115 int StartInternal(const HttpRequestInfo* request_info, | 117 int StartInternal(const HttpRequestInfo* request_info, |
116 SSLConfig* ssl_config, | 118 SSLConfig* ssl_config, |
117 ProxyInfo* proxy_info, | 119 ProxyInfo* proxy_info, |
118 const BoundNetLog& net_log); | 120 const BoundNetLog& net_log); |
119 | 121 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 int num_streams_; | 242 int num_streams_; |
241 | 243 |
242 ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; | 244 ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; |
243 | 245 |
244 DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); | 246 DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); |
245 }; | 247 }; |
246 | 248 |
247 } // namespace net | 249 } // namespace net |
248 | 250 |
249 #endif // NET_HTTP_HTTP_STREAM_REQUEST_H_ | 251 #endif // NET_HTTP_HTTP_STREAM_REQUEST_H_ |
OLD | NEW |