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

Unified Diff: net/dns/host_resolver.h

Issue 1903263002: DNS: Expose stale results through HostResolverImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dns_stale1
Patch Set: Remove ResolveStaleFromCache from HostResolver but not Impl Created 4 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
« no previous file with comments | « no previous file | 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 840aeb80e35de806ec97caa2ef86e07825b78e3b..5c371e43ad533e66ed0f366c36f5f17bb73e1bf7 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -18,6 +18,7 @@
#include "net/base/net_export.h"
#include "net/base/prioritized_dispatcher.h"
#include "net/base/request_priority.h"
+#include "net/dns/host_cache.h"
namespace base {
class Value;
@@ -27,7 +28,6 @@ namespace net {
class AddressList;
class BoundNetLog;
-class HostCache;
class HostResolverProc;
class NetLog;
@@ -155,14 +155,6 @@ class NET_EXPORT HostResolver {
RequestHandle* out_req,
const BoundNetLog& net_log) = 0;
- // Resolves the given hostname (or IP address literal) out of cache or HOSTS
- // file (if enabled) only. This is guaranteed to complete synchronously.
- // This acts like |Resolve()| if the hostname is IP literal, or cached value
- // or HOSTS entry exists. Otherwise, ERR_DNS_CACHE_MISS is returned.
- virtual int ResolveFromCache(const RequestInfo& info,
- AddressList* addresses,
- const BoundNetLog& net_log) = 0;
-
// Changes the priority of the specified request. |req| is the handle returned
// by Resolve(). ChangeRequestPriority must NOT be called after the request's
// completion callback has already run or the request was canceled.
@@ -175,6 +167,14 @@ class NET_EXPORT HostResolver {
// has already run or the request was canceled.
virtual void CancelRequest(RequestHandle req) = 0;
+ // Resolves the given hostname (or IP address literal) out of cache or HOSTS
+ // file (if enabled) only. This is guaranteed to complete synchronously.
+ // This acts like |Resolve()| if the hostname is IP literal, or cached value
+ // or HOSTS entry exists. Otherwise, ERR_DNS_CACHE_MISS is returned.
+ virtual int ResolveFromCache(const RequestInfo& info,
+ AddressList* addresses,
+ const BoundNetLog& net_log) = 0;
+
// Enable or disable the built-in asynchronous DnsClient.
virtual void SetDnsClientEnabled(bool enabled);
« no previous file with comments | « no previous file | net/dns/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698