| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 133   int DoRestartTunnelAuth(); | 133   int DoRestartTunnelAuth(); | 
| 134   int DoRestartTunnelAuthComplete(int result); | 134   int DoRestartTunnelAuthComplete(int result); | 
| 135 | 135 | 
| 136   // Set the motivation for this request onto the underlying socket. | 136   // Set the motivation for this request onto the underlying socket. | 
| 137   void SetSocketMotivation(); | 137   void SetSocketMotivation(); | 
| 138 | 138 | 
| 139   bool IsHttpsProxyAndHttpUrl(); | 139   bool IsHttpsProxyAndHttpUrl(); | 
| 140 | 140 | 
| 141   // Returns a newly create SSLSocketParams, and sets several | 141   // Returns a newly create SSLSocketParams, and sets several | 
| 142   // fields of ssl_config_. | 142   // fields of ssl_config_. | 
| 143   scoped_refptr<SSLSocketParams> GenerateSslParams( | 143   scoped_refptr<SSLSocketParams> GenerateSSLParams( | 
| 144       scoped_refptr<TCPSocketParams> tcp_params, | 144       scoped_refptr<TCPSocketParams> tcp_params, | 
| 145       scoped_refptr<HttpProxySocketParams> http_proxy_params, | 145       scoped_refptr<HttpProxySocketParams> http_proxy_params, | 
| 146       scoped_refptr<SOCKSSocketParams> socks_params, | 146       scoped_refptr<SOCKSSocketParams> socks_params, | 
| 147       ProxyServer::Scheme proxy_scheme, | 147       ProxyServer::Scheme proxy_scheme, | 
| 148       std::string hostname, | 148       const HostPortPair& host_and_port, | 
| 149       bool want_spdy_over_npn); | 149       bool want_spdy_over_npn); | 
| 150 | 150 | 
| 151   // AlternateProtocol API | 151   // AlternateProtocol API | 
| 152   void MarkBrokenAlternateProtocolAndFallback(); | 152   void MarkBrokenAlternateProtocolAndFallback(); | 
| 153 | 153 | 
| 154   // Retrieve SSLInfo from our SSL Socket. | 154   // Retrieve SSLInfo from our SSL Socket. | 
| 155   // This must only be called when we are using an SSLSocket. | 155   // This must only be called when we are using an SSLSocket. | 
| 156   // After calling, the caller can use ssl_info_. | 156   // After calling, the caller can use ssl_info_. | 
| 157   void GetSSLInfo(); | 157   void GetSSLInfo(); | 
| 158 | 158 | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 242   int num_streams_; | 242   int num_streams_; | 
| 243 | 243 | 
| 244   ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; | 244   ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; | 
| 245 | 245 | 
| 246   DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); | 246   DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); | 
| 247 }; | 247 }; | 
| 248 | 248 | 
| 249 }  // namespace net | 249 }  // namespace net | 
| 250 | 250 | 
| 251 #endif  // NET_HTTP_HTTP_STREAM_REQUEST_H_ | 251 #endif  // NET_HTTP_HTTP_STREAM_REQUEST_H_ | 
| OLD | NEW | 
|---|