| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 base::FilePath path; | 56 base::FilePath path; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 struct NET_EXPORT HttpNetworkSessionParams { | 59 struct NET_EXPORT HttpNetworkSessionParams { |
| 60 HttpNetworkSessionParams(); | 60 HttpNetworkSessionParams(); |
| 61 ~HttpNetworkSessionParams(); | 61 ~HttpNetworkSessionParams(); |
| 62 | 62 |
| 63 // These fields mirror those in net::HttpNetworkSession::Params; | 63 // These fields mirror those in net::HttpNetworkSession::Params; |
| 64 bool ignore_certificate_errors; | 64 bool ignore_certificate_errors; |
| 65 HostMappingRules* host_mapping_rules; | 65 HostMappingRules* host_mapping_rules; |
| 66 bool http_pipelining_enabled; | |
| 67 uint16 testing_fixed_http_port; | 66 uint16 testing_fixed_http_port; |
| 68 uint16 testing_fixed_https_port; | 67 uint16 testing_fixed_https_port; |
| 69 std::string trusted_spdy_proxy; | 68 std::string trusted_spdy_proxy; |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 URLRequestContextBuilder(); | 71 URLRequestContextBuilder(); |
| 73 ~URLRequestContextBuilder(); | 72 ~URLRequestContextBuilder(); |
| 74 | 73 |
| 75 void set_proxy_config_service(ProxyConfigService* proxy_config_service); | 74 void set_proxy_config_service(ProxyConfigService* proxy_config_service); |
| 76 | 75 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 scoped_ptr<NetworkDelegate> network_delegate_; | 173 scoped_ptr<NetworkDelegate> network_delegate_; |
| 175 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; | 174 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| 176 std::vector<SchemeFactory> extra_http_auth_handlers_; | 175 std::vector<SchemeFactory> extra_http_auth_handlers_; |
| 177 | 176 |
| 178 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 177 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 179 }; | 178 }; |
| 180 | 179 |
| 181 } // namespace net | 180 } // namespace net |
| 182 | 181 |
| 183 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 182 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |