| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ~HttpCacheParams(); | 42 ~HttpCacheParams(); |
| 43 | 43 |
| 44 // The type of HTTP cache. Default is IN_MEMORY. | 44 // The type of HTTP cache. Default is IN_MEMORY. |
| 45 Type type; | 45 Type type; |
| 46 | 46 |
| 47 // The max size of the cache in bytes. Default is algorithmically determined | 47 // The max size of the cache in bytes. Default is algorithmically determined |
| 48 // based off available disk space. | 48 // based off available disk space. |
| 49 int max_size; | 49 int max_size; |
| 50 | 50 |
| 51 // The cache path (when type is DISK). | 51 // The cache path (when type is DISK). |
| 52 FilePath path; | 52 base::FilePath path; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 struct NET_EXPORT HttpNetworkSessionParams { | 55 struct NET_EXPORT HttpNetworkSessionParams { |
| 56 HttpNetworkSessionParams(); | 56 HttpNetworkSessionParams(); |
| 57 ~HttpNetworkSessionParams(); | 57 ~HttpNetworkSessionParams(); |
| 58 | 58 |
| 59 // These fields mirror those in net::HttpNetworkSession::Params; | 59 // These fields mirror those in net::HttpNetworkSession::Params; |
| 60 bool ignore_certificate_errors; | 60 bool ignore_certificate_errors; |
| 61 HostMappingRules* host_mapping_rules; | 61 HostMappingRules* host_mapping_rules; |
| 62 bool http_pipelining_enabled; | 62 bool http_pipelining_enabled; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 scoped_ptr<ProxyConfigService> proxy_config_service_; | 126 scoped_ptr<ProxyConfigService> proxy_config_service_; |
| 127 #endif // defined(OS_LINUX) || defined(OS_ANDROID) | 127 #endif // defined(OS_LINUX) || defined(OS_ANDROID) |
| 128 scoped_ptr<NetworkDelegate> network_delegate_; | 128 scoped_ptr<NetworkDelegate> network_delegate_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 130 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace net | 133 } // namespace net |
| 134 | 134 |
| 135 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 135 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |