| 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 HttpResponseInfo; | 41 class HttpResponseInfo; |
| 42 class HttpServerProperties; | 42 class HttpServerProperties; |
| 43 class HttpStream; | 43 class HttpStream; |
| 44 class ProxyInfo; | 44 class ProxyInfo; |
| 45 class SSLCertRequestInfo; | 45 class SSLCertRequestInfo; |
| 46 class SSLInfo; | 46 class SSLInfo; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // |used_ssl_config| indicates the actual SSL configuration used for this | 84 // |used_ssl_config| indicates the actual SSL configuration used for this |
| 85 // stream, since the HttpStreamRequest may have modified the configuration | 85 // stream, since the HttpStreamRequest may have modified the configuration |
| 86 // during stream processing. | 86 // during stream processing. |
| 87 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, | 87 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, |
| 88 // since the HttpStreamRequest performs the proxy resolution. | 88 // since the HttpStreamRequest performs the proxy resolution. |
| 89 virtual void OnWebSocketHandshakeStreamReady( | 89 virtual void OnWebSocketHandshakeStreamReady( |
| 90 const SSLConfig& used_ssl_config, | 90 const SSLConfig& used_ssl_config, |
| 91 const ProxyInfo& used_proxy_info, | 91 const ProxyInfo& used_proxy_info, |
| 92 WebSocketHandshakeStreamBase* stream) = 0; | 92 WebSocketHandshakeStreamBase* stream) = 0; |
| 93 | 93 |
| 94 virtual void OnBidirectionalStreamJobReady( | 94 virtual void OnBidirectionalStreamImplReady( |
| 95 const SSLConfig& used_ssl_config, | 95 const SSLConfig& used_ssl_config, |
| 96 const ProxyInfo& used_proxy_info, | 96 const ProxyInfo& used_proxy_info, |
| 97 BidirectionalStreamJob* stream) = 0; | 97 BidirectionalStreamImpl* stream) = 0; |
| 98 | 98 |
| 99 // This is the failure to create a stream case. | 99 // This is the failure to create a stream case. |
| 100 // |used_ssl_config| indicates the actual SSL configuration used for this | 100 // |used_ssl_config| indicates the actual SSL configuration used for this |
| 101 // stream, since the HttpStreamRequest may have modified the configuration | 101 // stream, since the HttpStreamRequest may have modified the configuration |
| 102 // during stream processing. If an SSL handshake failed, |ssl_failure_state| | 102 // during stream processing. If an SSL handshake failed, |ssl_failure_state| |
| 103 // is the state the SSLClientSocket was in. | 103 // is the state the SSLClientSocket was in. |
| 104 virtual void OnStreamFailed(int status, | 104 virtual void OnStreamFailed(int status, |
| 105 const SSLConfig& used_ssl_config, | 105 const SSLConfig& used_ssl_config, |
| 106 SSLFailureState ssl_failure_state) = 0; | 106 SSLFailureState ssl_failure_state) = 0; |
| 107 | 107 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // completion. | 231 // completion. |
| 232 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( | 232 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( |
| 233 const HttpRequestInfo& info, | 233 const HttpRequestInfo& info, |
| 234 RequestPriority priority, | 234 RequestPriority priority, |
| 235 const SSLConfig& server_ssl_config, | 235 const SSLConfig& server_ssl_config, |
| 236 const SSLConfig& proxy_ssl_config, | 236 const SSLConfig& proxy_ssl_config, |
| 237 HttpStreamRequest::Delegate* delegate, | 237 HttpStreamRequest::Delegate* delegate, |
| 238 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 238 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
| 239 const BoundNetLog& net_log) = 0; | 239 const BoundNetLog& net_log) = 0; |
| 240 | 240 |
| 241 // Request a BidirectionalStreamJob. | 241 // Request a BidirectionalStreamImpl. |
| 242 // Will call delegate->OnBidirectionalStreamJobReady on successful | 242 // Will call delegate->OnBidirectionalStreamImplReady on successful |
| 243 // completion. | 243 // completion. |
| 244 virtual HttpStreamRequest* RequestBidirectionalStreamJob( | 244 virtual HttpStreamRequest* RequestBidirectionalStreamImpl( |
| 245 const HttpRequestInfo& info, | 245 const HttpRequestInfo& info, |
| 246 RequestPriority priority, | 246 RequestPriority priority, |
| 247 const SSLConfig& server_ssl_config, | 247 const SSLConfig& server_ssl_config, |
| 248 const SSLConfig& proxy_ssl_config, | 248 const SSLConfig& proxy_ssl_config, |
| 249 HttpStreamRequest::Delegate* delegate, | 249 HttpStreamRequest::Delegate* delegate, |
| 250 const BoundNetLog& net_log) = 0; | 250 const BoundNetLog& net_log) = 0; |
| 251 | 251 |
| 252 // Requests that enough connections for |num_streams| be opened. | 252 // Requests that enough connections for |num_streams| be opened. |
| 253 virtual void PreconnectStreams(int num_streams, | 253 virtual void PreconnectStreams(int num_streams, |
| 254 const HttpRequestInfo& info, | 254 const HttpRequestInfo& info, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 277 static bool spdy_enabled_; | 277 static bool spdy_enabled_; |
| 278 | 278 |
| 279 HostPortPair RewriteHost(HostPortPair host_port_pair); | 279 HostPortPair RewriteHost(HostPortPair host_port_pair); |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 281 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace net | 284 } // namespace net |
| 285 | 285 |
| 286 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 286 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |