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

Unified Diff: net/http/http_cache.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/http/http_cache.h
===================================================================
--- net/http/http_cache.h (revision 18213)
+++ net/http/http_cache.h (working copy)
@@ -31,6 +31,7 @@
namespace net {
+class HostResolver;
class HttpNetworkSession;
class HttpRequestInfo;
class HttpResponseInfo;
@@ -57,7 +58,8 @@
// Initialize the cache from the directory where its data is stored. The
// disk cache is initialized lazily (by CreateTransaction) in this case. If
// |cache_size| is zero, a default value will be calculated automatically.
- HttpCache(ProxyService* proxy_service,
+ HttpCache(HostResolver* host_resolver,
+ ProxyService* proxy_service,
const std::wstring& cache_dir,
int cache_size);
@@ -73,7 +75,9 @@
// Initialize using an in-memory cache. The cache is initialized lazily
// (by CreateTransaction) in this case. If |cache_size| is zero, a default
// value will be calculated automatically.
- HttpCache(ProxyService* proxy_service, int cache_size);
+ HttpCache(HostResolver* host_resolver,
+ ProxyService* proxy_service,
+ int cache_size);
// Initialize the cache from its component parts, which is useful for
// testing. The lifetime of the network_layer and disk_cache are managed by

Powered by Google App Engine
This is Rietveld 408576698