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 28 matching lines...) Expand all Loading... | |
39 | 39 |
40 namespace net { | 40 namespace net { |
41 | 41 |
42 class ChannelIDService; | 42 class ChannelIDService; |
43 class CookieStore; | 43 class CookieStore; |
44 class FtpTransactionFactory; | 44 class FtpTransactionFactory; |
45 class HostMappingRules; | 45 class HostMappingRules; |
46 class HttpAuthHandlerFactory; | 46 class HttpAuthHandlerFactory; |
47 class HttpServerProperties; | 47 class HttpServerProperties; |
48 class ProxyConfigService; | 48 class ProxyConfigService; |
49 class ProxyDelegate; | |
49 class URLRequestContext; | 50 class URLRequestContext; |
50 class URLRequestInterceptor; | 51 class URLRequestInterceptor; |
51 | 52 |
52 class NET_EXPORT URLRequestContextBuilder { | 53 class NET_EXPORT URLRequestContextBuilder { |
53 public: | 54 public: |
54 struct NET_EXPORT HttpCacheParams { | 55 struct NET_EXPORT HttpCacheParams { |
55 enum Type { | 56 enum Type { |
56 // In-memory cache. | 57 // In-memory cache. |
57 IN_MEMORY, | 58 IN_MEMORY, |
58 // Disk cache using "default" backend. | 59 // Disk cache using "default" backend. |
(...skipping 19 matching lines...) Expand all Loading... | |
78 struct NET_EXPORT HttpNetworkSessionParams { | 79 struct NET_EXPORT HttpNetworkSessionParams { |
79 HttpNetworkSessionParams(); | 80 HttpNetworkSessionParams(); |
80 ~HttpNetworkSessionParams(); | 81 ~HttpNetworkSessionParams(); |
81 | 82 |
82 // These fields mirror those in HttpNetworkSession::Params; | 83 // These fields mirror those in HttpNetworkSession::Params; |
83 bool ignore_certificate_errors; | 84 bool ignore_certificate_errors; |
84 HostMappingRules* host_mapping_rules; | 85 HostMappingRules* host_mapping_rules; |
85 uint16_t testing_fixed_http_port; | 86 uint16_t testing_fixed_http_port; |
86 uint16_t testing_fixed_https_port; | 87 uint16_t testing_fixed_https_port; |
87 NextProtoVector next_protos; | 88 NextProtoVector next_protos; |
88 std::string trusted_spdy_proxy; | 89 ProxyDelegate* proxy_delegate; |
mmenke
2016/02/02 16:51:26
Doesn't look like this is used anywhere, so let's
tbansal1
2016/02/02 18:18:44
Done.
| |
89 bool parse_alternative_services; | 90 bool parse_alternative_services; |
90 bool enable_alternative_service_with_different_host; | 91 bool enable_alternative_service_with_different_host; |
91 bool enable_quic; | 92 bool enable_quic; |
92 int quic_max_server_configs_stored_in_properties; | 93 int quic_max_server_configs_stored_in_properties; |
93 bool quic_delay_tcp_race; | 94 bool quic_delay_tcp_race; |
94 int quic_max_number_of_lossy_connections; | 95 int quic_max_number_of_lossy_connections; |
95 std::unordered_set<std::string> quic_host_whitelist; | 96 std::unordered_set<std::string> quic_host_whitelist; |
96 float quic_packet_loss_threshold; | 97 float quic_packet_loss_threshold; |
97 int quic_idle_connection_timeout_seconds; | 98 int quic_idle_connection_timeout_seconds; |
98 QuicTagVector quic_connection_options; | 99 QuicTagVector quic_connection_options; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
308 scoped_ptr<CertVerifier> cert_verifier_; | 309 scoped_ptr<CertVerifier> cert_verifier_; |
309 std::vector<scoped_ptr<URLRequestInterceptor>> url_request_interceptors_; | 310 std::vector<scoped_ptr<URLRequestInterceptor>> url_request_interceptors_; |
310 scoped_ptr<HttpServerProperties> http_server_properties_; | 311 scoped_ptr<HttpServerProperties> http_server_properties_; |
311 | 312 |
312 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 313 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
313 }; | 314 }; |
314 | 315 |
315 } // namespace net | 316 } // namespace net |
316 | 317 |
317 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 318 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
OLD | NEW |