| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 HttpNetworkSessionParams(); | 73 HttpNetworkSessionParams(); |
| 74 ~HttpNetworkSessionParams(); | 74 ~HttpNetworkSessionParams(); |
| 75 | 75 |
| 76 // These fields mirror those in HttpNetworkSession::Params; | 76 // These fields mirror those in HttpNetworkSession::Params; |
| 77 bool ignore_certificate_errors; | 77 bool ignore_certificate_errors; |
| 78 HostMappingRules* host_mapping_rules; | 78 HostMappingRules* host_mapping_rules; |
| 79 uint16 testing_fixed_http_port; | 79 uint16 testing_fixed_http_port; |
| 80 uint16 testing_fixed_https_port; | 80 uint16 testing_fixed_https_port; |
| 81 NextProtoVector next_protos; | 81 NextProtoVector next_protos; |
| 82 std::string trusted_spdy_proxy; | 82 std::string trusted_spdy_proxy; |
| 83 bool use_alternate_protocols; | 83 bool use_alternative_services; |
| 84 bool enable_quic; | 84 bool enable_quic; |
| 85 bool enable_insecure_quic; | 85 bool enable_insecure_quic; |
| 86 QuicTagVector quic_connection_options; | 86 QuicTagVector quic_connection_options; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 URLRequestContextBuilder(); | 89 URLRequestContextBuilder(); |
| 90 ~URLRequestContextBuilder(); | 90 ~URLRequestContextBuilder(); |
| 91 | 91 |
| 92 // These functions are mutually exclusive. The ProxyConfigService, if | 92 // These functions are mutually exclusive. The ProxyConfigService, if |
| 93 // set, will be used to construct a ProxyService. | 93 // set, will be used to construct a ProxyService. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 std::vector<SchemeFactory> extra_http_auth_handlers_; | 265 std::vector<SchemeFactory> extra_http_auth_handlers_; |
| 266 ScopedVector<URLRequestInterceptor> url_request_interceptors_; | 266 ScopedVector<URLRequestInterceptor> url_request_interceptors_; |
| 267 scoped_ptr<HttpServerProperties> http_server_properties_; | 267 scoped_ptr<HttpServerProperties> http_server_properties_; |
| 268 | 268 |
| 269 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 269 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 } // namespace net | 272 } // namespace net |
| 273 | 273 |
| 274 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 274 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |