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

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

Issue 1448193002: [Android WebView] Get rid of secondary HttpNetworkSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class ProxyConfigService; 47 class ProxyConfigService;
48 class URLRequestContext; 48 class URLRequestContext;
49 class URLRequestInterceptor; 49 class URLRequestInterceptor;
50 50
51 class NET_EXPORT URLRequestContextBuilder { 51 class NET_EXPORT URLRequestContextBuilder {
52 public: 52 public:
53 struct NET_EXPORT HttpCacheParams { 53 struct NET_EXPORT HttpCacheParams {
54 enum Type { 54 enum Type {
55 IN_MEMORY, 55 IN_MEMORY,
56 DISK, 56 DISK,
57 DISK_SIMPLE,
mmenke 2015/11/17 17:22:45 Should have comments here. Not sure we want to ke
mnaganov (inactive) 2015/11/17 19:01:39 Done.
57 }; 58 };
58 59
59 HttpCacheParams(); 60 HttpCacheParams();
60 ~HttpCacheParams(); 61 ~HttpCacheParams();
61 62
62 // The type of HTTP cache. Default is IN_MEMORY. 63 // The type of HTTP cache. Default is IN_MEMORY.
63 Type type; 64 Type type;
64 65
65 // The max size of the cache in bytes. Default is algorithmically determined 66 // The max size of the cache in bytes. Default is algorithmically determined
66 // based off available disk space. 67 // based off available disk space.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 scoped_ptr<CertVerifier> cert_verifier_; 274 scoped_ptr<CertVerifier> cert_verifier_;
274 ScopedVector<URLRequestInterceptor> url_request_interceptors_; 275 ScopedVector<URLRequestInterceptor> url_request_interceptors_;
275 scoped_ptr<HttpServerProperties> http_server_properties_; 276 scoped_ptr<HttpServerProperties> http_server_properties_;
276 277
277 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); 278 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
278 }; 279 };
279 280
280 } // namespace net 281 } // namespace net
281 282
282 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 283 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698