| 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 #include <vector> | 10 #include <vector> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 const SSLConfig& proxy_ssl_config, | 173 const SSLConfig& proxy_ssl_config, |
| 174 HttpStreamRequest::Delegate* delegate, | 174 HttpStreamRequest::Delegate* delegate, |
| 175 const BoundNetLog& net_log) = 0; | 175 const BoundNetLog& net_log) = 0; |
| 176 | 176 |
| 177 // Requests that enough connections for |num_streams| be opened. | 177 // Requests that enough connections for |num_streams| be opened. |
| 178 virtual void PreconnectStreams(int num_streams, | 178 virtual void PreconnectStreams(int num_streams, |
| 179 const HttpRequestInfo& info, | 179 const HttpRequestInfo& info, |
| 180 const SSLConfig& server_ssl_config, | 180 const SSLConfig& server_ssl_config, |
| 181 const SSLConfig& proxy_ssl_config) = 0; | 181 const SSLConfig& proxy_ssl_config) = 0; |
| 182 | 182 |
| 183 virtual void AddTLSIntolerantServer(const HostPortPair& server) = 0; | |
| 184 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const = 0; | |
| 185 | |
| 186 // If pipelining is supported, creates a Value summary of the currently active | 183 // If pipelining is supported, creates a Value summary of the currently active |
| 187 // pipelines. Caller assumes ownership of the returned value. Otherwise, | 184 // pipelines. Caller assumes ownership of the returned value. Otherwise, |
| 188 // returns an empty Value. | 185 // returns an empty Value. |
| 189 virtual base::Value* PipelineInfoToValue() const = 0; | 186 virtual base::Value* PipelineInfoToValue() const = 0; |
| 190 | 187 |
| 191 // Static settings | 188 // Static settings |
| 192 | 189 |
| 193 // Reset all static settings to initialized values. Used to init test suite. | 190 // Reset all static settings to initialized values. Used to init test suite. |
| 194 static void ResetStaticSettingsToInit(); | 191 static void ResetStaticSettingsToInit(); |
| 195 | 192 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 static bool http_pipelining_enabled_; | 289 static bool http_pipelining_enabled_; |
| 293 static uint16 testing_fixed_http_port_; | 290 static uint16 testing_fixed_http_port_; |
| 294 static uint16 testing_fixed_https_port_; | 291 static uint16 testing_fixed_https_port_; |
| 295 | 292 |
| 296 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 293 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 297 }; | 294 }; |
| 298 | 295 |
| 299 } // namespace net | 296 } // namespace net |
| 300 | 297 |
| 301 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 298 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |