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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 10831277: [net] Change factory methods for HostResolver and HostCache to return a scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary initialization; respond to review Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/fetch/fetch_client.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder.h
diff --git a/net/url_request/url_request_context_builder.h b/net/url_request/url_request_context_builder.h
index ddbca53991ddf83d1d6aee58c0629e24424e8e6c..34a9bf80ee4161a46aa221a5e8172a46970117f0 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -31,18 +31,6 @@ class URLRequestContext;
class NET_EXPORT URLRequestContextBuilder {
public:
- struct NET_EXPORT HostResolverParams {
- HostResolverParams();
- ~HostResolverParams();
-
- // The limit on the number of parallel host resolutions.
- size_t parallelism;
-
- // When the host resolution is taking too long, we'll retry this many times,
- // in a backing off manner.
- size_t retry_attempts;
- };
-
struct NET_EXPORT HttpCacheParams {
enum Type {
IN_MEMORY,
@@ -89,12 +77,6 @@ class NET_EXPORT URLRequestContextBuilder {
user_agent_ = user_agent;
}
- // Allows for overriding the default HostResolver params.
- void set_host_resolver_params(
- const HostResolverParams& host_resolver_params) {
- host_resolver_params_ = host_resolver_params;
- }
-
// By default it's disabled.
void set_ftp_enabled(bool enable) {
ftp_enabled_ = enable;
@@ -115,7 +97,6 @@ class NET_EXPORT URLRequestContextBuilder {
private:
std::string user_agent_;
bool ftp_enabled_;
- HostResolverParams host_resolver_params_;
bool http_cache_enabled_;
HttpCacheParams http_cache_params_;
HttpNetworkSessionParams http_network_session_params_;
« no previous file with comments | « net/tools/fetch/fetch_client.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698