| OLD | NEW |
| 1 // Copyright (c) 2011 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> |
| 11 | 11 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const HttpRequestInfo& info, | 170 const HttpRequestInfo& info, |
| 171 const SSLConfig& server_ssl_config, | 171 const SSLConfig& server_ssl_config, |
| 172 const SSLConfig& proxy_ssl_config, | 172 const SSLConfig& proxy_ssl_config, |
| 173 HttpStreamRequest::Delegate* delegate, | 173 HttpStreamRequest::Delegate* delegate, |
| 174 const BoundNetLog& net_log) = 0; | 174 const BoundNetLog& net_log) = 0; |
| 175 | 175 |
| 176 // Requests that enough connections for |num_streams| be opened. | 176 // Requests that enough connections for |num_streams| be opened. |
| 177 virtual void PreconnectStreams(int num_streams, | 177 virtual void PreconnectStreams(int num_streams, |
| 178 const HttpRequestInfo& info, | 178 const HttpRequestInfo& info, |
| 179 const SSLConfig& server_ssl_config, | 179 const SSLConfig& server_ssl_config, |
| 180 const SSLConfig& proxy_ssl_config, | 180 const SSLConfig& proxy_ssl_config) = 0; |
| 181 const BoundNetLog& net_log) = 0; | |
| 182 | 181 |
| 183 virtual void AddTLSIntolerantServer(const HostPortPair& server) = 0; | 182 virtual void AddTLSIntolerantServer(const HostPortPair& server) = 0; |
| 184 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const = 0; | 183 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const = 0; |
| 185 | 184 |
| 186 // If pipelining is supported, creates a Value summary of the currently active | 185 // If pipelining is supported, creates a Value summary of the currently active |
| 187 // pipelines. Caller assumes ownership of the returned value. Otherwise, | 186 // pipelines. Caller assumes ownership of the returned value. Otherwise, |
| 188 // returns an empty Value. | 187 // returns an empty Value. |
| 189 virtual base::Value* PipelineInfoToValue() const = 0; | 188 virtual base::Value* PipelineInfoToValue() const = 0; |
| 190 | 189 |
| 191 // Static settings | 190 // Static settings |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 static bool http_pipelining_enabled_; | 283 static bool http_pipelining_enabled_; |
| 285 static uint16 testing_fixed_http_port_; | 284 static uint16 testing_fixed_http_port_; |
| 286 static uint16 testing_fixed_https_port_; | 285 static uint16 testing_fixed_https_port_; |
| 287 | 286 |
| 288 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 287 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 289 }; | 288 }; |
| 290 | 289 |
| 291 } // namespace net | 290 } // namespace net |
| 292 | 291 |
| 293 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 292 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |