| 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 // This class is useful for building a simple URLRequestContext. Most creators | 5 // This class is useful for building a simple URLRequestContext. Most creators |
| 6 // of new URLRequestContexts should use this helper class to construct it. Call | 6 // of new URLRequestContexts should use this helper class to construct it. Call |
| 7 // any configuration params, and when done, invoke Build() to construct the | 7 // any configuration params, and when done, invoke Build() to construct the |
| 8 // URLRequestContext. This URLRequestContext will own all its own storage. | 8 // URLRequestContext. This URLRequestContext will own all its own storage. |
| 9 // | 9 // |
| 10 // URLRequestContextBuilder and its associated params classes are initially | 10 // URLRequestContextBuilder and its associated params classes are initially |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 struct NET_EXPORT HttpNetworkSessionParams { | 84 struct NET_EXPORT HttpNetworkSessionParams { |
| 85 HttpNetworkSessionParams(); | 85 HttpNetworkSessionParams(); |
| 86 ~HttpNetworkSessionParams(); | 86 ~HttpNetworkSessionParams(); |
| 87 | 87 |
| 88 // These fields mirror those in HttpNetworkSession::Params; | 88 // These fields mirror those in HttpNetworkSession::Params; |
| 89 bool ignore_certificate_errors; | 89 bool ignore_certificate_errors; |
| 90 HostMappingRules* host_mapping_rules; | 90 HostMappingRules* host_mapping_rules; |
| 91 uint16_t testing_fixed_http_port; | 91 uint16_t testing_fixed_http_port; |
| 92 uint16_t testing_fixed_https_port; | 92 uint16_t testing_fixed_https_port; |
| 93 bool enable_spdy31; | |
| 94 bool enable_http2; | 93 bool enable_http2; |
| 95 bool enable_quic; | 94 bool enable_quic; |
| 96 std::string quic_user_agent_id; | 95 std::string quic_user_agent_id; |
| 97 int quic_max_server_configs_stored_in_properties; | 96 int quic_max_server_configs_stored_in_properties; |
| 98 bool quic_delay_tcp_race; | 97 bool quic_delay_tcp_race; |
| 99 int quic_max_number_of_lossy_connections; | 98 int quic_max_number_of_lossy_connections; |
| 100 std::unordered_set<std::string> quic_host_whitelist; | 99 std::unordered_set<std::string> quic_host_whitelist; |
| 101 bool quic_prefer_aes; | 100 bool quic_prefer_aes; |
| 102 float quic_packet_loss_threshold; | 101 float quic_packet_loss_threshold; |
| 103 int quic_idle_connection_timeout_seconds; | 102 int quic_idle_connection_timeout_seconds; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // Not owned by the context builder. Once it is set to a non-null value, it | 377 // Not owned by the context builder. Once it is set to a non-null value, it |
| 379 // is guaranteed to be non-null during the lifetime of |this|. | 378 // is guaranteed to be non-null during the lifetime of |this|. |
| 380 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; | 379 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; |
| 381 | 380 |
| 382 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 381 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 383 }; | 382 }; |
| 384 | 383 |
| 385 } // namespace net | 384 } // namespace net |
| 386 | 385 |
| 387 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 386 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |