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

Unified Diff: net/url_request/url_request_context.h

Issue 118100: Avoid doing concurrent DNS resolves of the same hostname (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get compiling on mac Created 11 years, 6 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
Index: net/url_request/url_request_context.h
===================================================================
--- net/url_request/url_request_context.h (revision 18213)
+++ net/url_request/url_request_context.h (working copy)
@@ -19,6 +19,7 @@
class CookieMonster;
class ForceTLSState;
class FtpTransactionFactory;
+class HostResolver;
class HttpTransactionFactory;
class ProxyService;
}
@@ -28,13 +29,18 @@
public base::RefCountedThreadSafe<URLRequestContext> {
public:
URLRequestContext()
- : proxy_service_(NULL),
+ : host_resolver_(NULL),
+ proxy_service_(NULL),
http_transaction_factory_(NULL),
ftp_transaction_factory_(NULL),
cookie_store_(NULL),
force_tls_state_(NULL) {
}
+ net::HostResolver* host_resolver() const {
+ return host_resolver_;
+ }
+
// Get the proxy service for this context.
net::ProxyService* proxy_service() const {
return proxy_service_;
@@ -88,6 +94,7 @@
// The following members are expected to be initialized and owned by
// subclasses.
+ net::HostResolver* host_resolver_;
net::ProxyService* proxy_service_;
net::HttpTransactionFactory* http_transaction_factory_;
net::FtpTransactionFactory* ftp_transaction_factory_;

Powered by Google App Engine
This is Rietveld 408576698