| 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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
| 16 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
| 17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
| 18 #include "net/http/http_server_properties.h" |
| 18 #include "net/socket/ssl_client_socket.h" | 19 #include "net/socket/ssl_client_socket.h" |
| 19 | 20 |
| 20 class GURL; | 21 class GURL; |
| 21 | 22 |
| 22 namespace base { | 23 namespace base { |
| 23 class Value; | 24 class Value; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace net { | 27 namespace net { |
| 27 | 28 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 static void set_testing_fixed_http_port(int port) { | 260 static void set_testing_fixed_http_port(int port) { |
| 260 testing_fixed_http_port_ = port; | 261 testing_fixed_http_port_ = port; |
| 261 } | 262 } |
| 262 static uint16 testing_fixed_http_port() { return testing_fixed_http_port_; } | 263 static uint16 testing_fixed_http_port() { return testing_fixed_http_port_; } |
| 263 | 264 |
| 264 static void set_testing_fixed_https_port(int port) { | 265 static void set_testing_fixed_https_port(int port) { |
| 265 testing_fixed_https_port_ = port; | 266 testing_fixed_https_port_ = port; |
| 266 } | 267 } |
| 267 static uint16 testing_fixed_https_port() { return testing_fixed_https_port_; } | 268 static uint16 testing_fixed_https_port() { return testing_fixed_https_port_; } |
| 268 | 269 |
| 270 static void set_highest_supported_alternate_protocol( |
| 271 AlternateProtocol protocol) { |
| 272 highest_supported_alternate_protocol_ = protocol; |
| 273 } |
| 274 |
| 269 protected: | 275 protected: |
| 270 HttpStreamFactory(); | 276 HttpStreamFactory(); |
| 271 | 277 |
| 272 private: | 278 private: |
| 273 static const HostMappingRules& host_mapping_rules(); | 279 static const HostMappingRules& host_mapping_rules(); |
| 274 | 280 |
| 275 static const HostMappingRules* host_mapping_rules_; | 281 static const HostMappingRules* host_mapping_rules_; |
| 276 static std::vector<std::string>* next_protos_; | 282 static std::vector<std::string>* next_protos_; |
| 277 static bool spdy_enabled_; | 283 static bool spdy_enabled_; |
| 278 static bool use_alternate_protocols_; | 284 static bool use_alternate_protocols_; |
| 279 static bool force_spdy_over_ssl_; | 285 static bool force_spdy_over_ssl_; |
| 280 static bool force_spdy_always_; | 286 static bool force_spdy_always_; |
| 281 static std::list<HostPortPair>* forced_spdy_exclusions_; | 287 static std::list<HostPortPair>* forced_spdy_exclusions_; |
| 282 static bool ignore_certificate_errors_; | 288 static bool ignore_certificate_errors_; |
| 283 static bool http_pipelining_enabled_; | 289 static bool http_pipelining_enabled_; |
| 284 static uint16 testing_fixed_http_port_; | 290 static uint16 testing_fixed_http_port_; |
| 285 static uint16 testing_fixed_https_port_; | 291 static uint16 testing_fixed_https_port_; |
| 292 static AlternateProtocol highest_supported_alternate_protocol_; |
| 286 | 293 |
| 287 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 294 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 288 }; | 295 }; |
| 289 | 296 |
| 290 } // namespace net | 297 } // namespace net |
| 291 | 298 |
| 292 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 299 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |