| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 ~HttpNetworkSessionParams(); | 64 ~HttpNetworkSessionParams(); |
| 65 | 65 |
| 66 // These fields mirror those in net::HttpNetworkSession::Params; | 66 // These fields mirror those in net::HttpNetworkSession::Params; |
| 67 bool ignore_certificate_errors; | 67 bool ignore_certificate_errors; |
| 68 HostMappingRules* host_mapping_rules; | 68 HostMappingRules* host_mapping_rules; |
| 69 uint16 testing_fixed_http_port; | 69 uint16 testing_fixed_http_port; |
| 70 uint16 testing_fixed_https_port; | 70 uint16 testing_fixed_https_port; |
| 71 NextProtoVector next_protos; | 71 NextProtoVector next_protos; |
| 72 std::string trusted_spdy_proxy; | 72 std::string trusted_spdy_proxy; |
| 73 bool use_alternate_protocols; | 73 bool use_alternate_protocols; |
| 74 bool enable_quic; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 URLRequestContextBuilder(); | 77 URLRequestContextBuilder(); |
| 77 ~URLRequestContextBuilder(); | 78 ~URLRequestContextBuilder(); |
| 78 | 79 |
| 79 // These functions are mutually exclusive. The ProxyConfigService, if | 80 // These functions are mutually exclusive. The ProxyConfigService, if |
| 80 // set, will be used to construct a ProxyService. | 81 // set, will be used to construct a ProxyService. |
| 81 void set_proxy_config_service(ProxyConfigService* proxy_config_service) { | 82 void set_proxy_config_service(ProxyConfigService* proxy_config_service) { |
| 82 proxy_config_service_.reset(proxy_config_service); | 83 proxy_config_service_.reset(proxy_config_service); |
| 83 } | 84 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 scoped_ptr<NetworkDelegate> network_delegate_; | 203 scoped_ptr<NetworkDelegate> network_delegate_; |
| 203 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; | 204 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| 204 std::vector<SchemeFactory> extra_http_auth_handlers_; | 205 std::vector<SchemeFactory> extra_http_auth_handlers_; |
| 205 | 206 |
| 206 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 207 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 } // namespace net | 210 } // namespace net |
| 210 | 211 |
| 211 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 212 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |