| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FACTORY_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class GURL; | 26 class GURL; |
| 27 | 27 |
| 28 namespace base { | 28 namespace base { |
| 29 class Value; | 29 class Value; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace net { | 32 namespace net { |
| 33 | 33 |
| 34 class AuthCredentials; | 34 class AuthCredentials; |
| 35 class BoundNetLog; | 35 class BoundNetLog; |
| 36 class BidirectionalStreamJob; | 36 class BidirectionalStreamImpl; |
| 37 class HostMappingRules; | 37 class HostMappingRules; |
| 38 class HostPortPair; | 38 class HostPortPair; |
| 39 class HttpAuthController; | 39 class HttpAuthController; |
| 40 class HttpNetworkSession; | 40 class HttpNetworkSession; |
| 41 class HttpResponseHeaders; | 41 class HttpResponseHeaders; |
| 42 class HttpResponseInfo; | 42 class HttpResponseInfo; |
| 43 class HttpServerProperties; | 43 class HttpServerProperties; |
| 44 class HttpStream; | 44 class HttpStream; |
| 45 class ProxyInfo; | 45 class ProxyInfo; |
| 46 class SSLCertRequestInfo; | 46 class SSLCertRequestInfo; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // |used_ssl_config| indicates the actual SSL configuration used for this | 85 // |used_ssl_config| indicates the actual SSL configuration used for this |
| 86 // stream, since the HttpStreamRequest may have modified the configuration | 86 // stream, since the HttpStreamRequest may have modified the configuration |
| 87 // during stream processing. | 87 // during stream processing. |
| 88 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, | 88 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, |
| 89 // since the HttpStreamRequest performs the proxy resolution. | 89 // since the HttpStreamRequest performs the proxy resolution. |
| 90 virtual void OnWebSocketHandshakeStreamReady( | 90 virtual void OnWebSocketHandshakeStreamReady( |
| 91 const SSLConfig& used_ssl_config, | 91 const SSLConfig& used_ssl_config, |
| 92 const ProxyInfo& used_proxy_info, | 92 const ProxyInfo& used_proxy_info, |
| 93 WebSocketHandshakeStreamBase* stream) = 0; | 93 WebSocketHandshakeStreamBase* stream) = 0; |
| 94 | 94 |
| 95 virtual void OnBidirectionalStreamJobReady( | 95 virtual void OnBidirectionalStreamImplReady( |
| 96 const SSLConfig& used_ssl_config, | 96 const SSLConfig& used_ssl_config, |
| 97 const ProxyInfo& used_proxy_info, | 97 const ProxyInfo& used_proxy_info, |
| 98 BidirectionalStreamJob* stream) = 0; | 98 BidirectionalStreamImpl* stream) = 0; |
| 99 | 99 |
| 100 // This is the failure to create a stream case. | 100 // This is the failure to create a stream case. |
| 101 // |used_ssl_config| indicates the actual SSL configuration used for this | 101 // |used_ssl_config| indicates the actual SSL configuration used for this |
| 102 // stream, since the HttpStreamRequest may have modified the configuration | 102 // stream, since the HttpStreamRequest may have modified the configuration |
| 103 // during stream processing. If an SSL handshake failed, |ssl_failure_state| | 103 // during stream processing. If an SSL handshake failed, |ssl_failure_state| |
| 104 // is the state the SSLClientSocket was in. | 104 // is the state the SSLClientSocket was in. |
| 105 virtual void OnStreamFailed(int status, | 105 virtual void OnStreamFailed(int status, |
| 106 const SSLConfig& used_ssl_config, | 106 const SSLConfig& used_ssl_config, |
| 107 SSLFailureState ssl_failure_state) = 0; | 107 SSLFailureState ssl_failure_state) = 0; |
| 108 | 108 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // completion. | 224 // completion. |
| 225 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( | 225 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( |
| 226 const HttpRequestInfo& info, | 226 const HttpRequestInfo& info, |
| 227 RequestPriority priority, | 227 RequestPriority priority, |
| 228 const SSLConfig& server_ssl_config, | 228 const SSLConfig& server_ssl_config, |
| 229 const SSLConfig& proxy_ssl_config, | 229 const SSLConfig& proxy_ssl_config, |
| 230 HttpStreamRequest::Delegate* delegate, | 230 HttpStreamRequest::Delegate* delegate, |
| 231 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 231 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
| 232 const BoundNetLog& net_log) = 0; | 232 const BoundNetLog& net_log) = 0; |
| 233 | 233 |
| 234 // Request a BidirectionalStreamJob. | 234 // Request a BidirectionalStreamImpl. |
| 235 // Will call delegate->OnBidirectionalStreamJobReady on successful | 235 // Will call delegate->OnBidirectionalStreamImplReady on successful |
| 236 // completion. | 236 // completion. |
| 237 virtual HttpStreamRequest* RequestBidirectionalStreamJob( | 237 virtual HttpStreamRequest* RequestBidirectionalStreamImpl( |
| 238 const HttpRequestInfo& info, | 238 const HttpRequestInfo& info, |
| 239 RequestPriority priority, | 239 RequestPriority priority, |
| 240 const SSLConfig& server_ssl_config, | 240 const SSLConfig& server_ssl_config, |
| 241 const SSLConfig& proxy_ssl_config, | 241 const SSLConfig& proxy_ssl_config, |
| 242 HttpStreamRequest::Delegate* delegate, | 242 HttpStreamRequest::Delegate* delegate, |
| 243 const BoundNetLog& net_log) = 0; | 243 const BoundNetLog& net_log) = 0; |
| 244 | 244 |
| 245 // Requests that enough connections for |num_streams| be opened. | 245 // Requests that enough connections for |num_streams| be opened. |
| 246 virtual void PreconnectStreams(int num_streams, | 246 virtual void PreconnectStreams(int num_streams, |
| 247 const HttpRequestInfo& info, | 247 const HttpRequestInfo& info, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 static bool spdy_enabled_; | 282 static bool spdy_enabled_; |
| 283 | 283 |
| 284 HostPortPair RewriteHost(HostPortPair host_port_pair); | 284 HostPortPair RewriteHost(HostPortPair host_port_pair); |
| 285 | 285 |
| 286 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 286 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 } // namespace net | 289 } // namespace net |
| 290 | 290 |
| 291 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 291 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |