| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 virtual HttpStreamRequest* RequestBidirectionalStreamImpl( | 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) = 0; |
| 248 const SSLConfig& server_ssl_config, | |
| 249 const SSLConfig& proxy_ssl_config) = 0; | |
| 250 | 248 |
| 251 virtual const HostMappingRules* GetHostMappingRules() const = 0; | 249 virtual const HostMappingRules* GetHostMappingRules() const = 0; |
| 252 | 250 |
| 253 // Static settings | 251 // Static settings |
| 254 | 252 |
| 255 // Reset all static settings to initialized values. Used to init test suite. | 253 // Reset all static settings to initialized values. Used to init test suite. |
| 256 static void ResetStaticSettingsToInit(); | 254 static void ResetStaticSettingsToInit(); |
| 257 | 255 |
| 258 // Turns spdy on or off. | 256 // Turns spdy on or off. |
| 259 // TODO(mmenke): Figure out if this can be made a property of the | 257 // TODO(mmenke): Figure out if this can be made a property of the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 282 static bool spdy_enabled_; | 280 static bool spdy_enabled_; |
| 283 | 281 |
| 284 HostPortPair RewriteHost(HostPortPair host_port_pair); | 282 HostPortPair RewriteHost(HostPortPair host_port_pair); |
| 285 | 283 |
| 286 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 284 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 287 }; | 285 }; |
| 288 | 286 |
| 289 } // namespace net | 287 } // namespace net |
| 290 | 288 |
| 291 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 289 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |