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

Unified Diff: net/dns/host_resolver.h

Issue 1898873006: Cronet: Use stale DNS cache entries experimentally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dns_stale2
Patch Set: Resolve merge conflict. Created 4 years, 4 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 | « components/cronet/url_request_context_config_unittest.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver.h
diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
index ed45ee1f3964cde221118115cbd3a701de8a1980..b478b17d6635016d92e095eacef1bbcc7f8baf21 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -28,6 +28,7 @@ namespace net {
class AddressList;
class BoundNetLog;
+class HostResolverImpl;
class HostResolverProc;
class NetLog;
@@ -218,9 +219,18 @@ class NET_EXPORT HostResolver {
static std::unique_ptr<HostResolver> CreateSystemResolver(
const Options& options,
NetLog* net_log);
+ // Same, but explicitly returns the HostResolverImpl. Only used by
+ // StaleHostResolver in cronet.
+ static std::unique_ptr<HostResolverImpl> CreateSystemResolverImpl(
+ const Options& options,
+ NetLog* net_log);
// As above, but uses default parameters.
static std::unique_ptr<HostResolver> CreateDefaultResolver(NetLog* net_log);
+ // Same, but explicitly returns the HostResolverImpl. Only used by
+ // StaleHostResolver in cronet.
+ static std::unique_ptr<HostResolverImpl> CreateDefaultResolverImpl(
+ NetLog* net_log);
protected:
HostResolver();
« no previous file with comments | « components/cronet/url_request_context_config_unittest.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698