Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Side by Side Diff: net/url_request/url_request_context_builder.h

Issue 2143563002: net: Remove URLRequestContextBuilder::HttpCacheParams::Type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class HttpAuthHandlerFactory; 51 class HttpAuthHandlerFactory;
52 class HttpServerProperties; 52 class HttpServerProperties;
53 class ProxyConfigService; 53 class ProxyConfigService;
54 class SocketPerformanceWatcherFactory; 54 class SocketPerformanceWatcherFactory;
55 class URLRequestContext; 55 class URLRequestContext;
56 class URLRequestInterceptor; 56 class URLRequestInterceptor;
57 57
58 class NET_EXPORT URLRequestContextBuilder { 58 class NET_EXPORT URLRequestContextBuilder {
59 public: 59 public:
60 struct NET_EXPORT HttpCacheParams { 60 struct NET_EXPORT HttpCacheParams {
61 enum Type {
62 // In-memory cache.
63 IN_MEMORY,
64 // Disk cache using "default" backend.
65 DISK,
66 // Disk cache using "simple" backend (SimpleBackendImpl).
67 DISK_SIMPLE,
68 };
69
70 HttpCacheParams(); 61 HttpCacheParams();
71 ~HttpCacheParams(); 62 ~HttpCacheParams();
72 63
73 // The type of HTTP cache. Default is IN_MEMORY.
74 Type type;
75
76 // The max size of the cache in bytes. Default is algorithmically determined 64 // The max size of the cache in bytes. Default is algorithmically determined
77 // based off available disk space. 65 // based off available disk space.
78 int max_size; 66 int max_size;
79
80 // The cache path (when type is DISK).
81 base::FilePath path;
82 }; 67 };
83 68
84 struct NET_EXPORT HttpNetworkSessionParams { 69 struct NET_EXPORT HttpNetworkSessionParams {
85 HttpNetworkSessionParams(); 70 HttpNetworkSessionParams();
86 ~HttpNetworkSessionParams(); 71 ~HttpNetworkSessionParams();
87 72
88 // These fields mirror those in HttpNetworkSession::Params; 73 // These fields mirror those in HttpNetworkSession::Params;
89 bool ignore_certificate_errors; 74 bool ignore_certificate_errors;
90 HostMappingRules* host_mapping_rules; 75 HostMappingRules* host_mapping_rules;
91 uint16_t testing_fixed_http_port; 76 uint16_t testing_fixed_http_port;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Not owned by the context builder. Once it is set to a non-null value, it 363 // Not owned by the context builder. Once it is set to a non-null value, it
379 // is guaranteed to be non-null during the lifetime of |this|. 364 // is guaranteed to be non-null during the lifetime of |this|.
380 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; 365 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_;
381 366
382 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); 367 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
383 }; 368 };
384 369
385 } // namespace net 370 } // namespace net
386 371
387 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 372 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698