summaryrefslogtreecommitdiffstats
path: root/net/dns/dns_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns/dns_client.h')
-rw-r--r--net/dns/dns_client.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/dns/dns_client.h b/net/dns/dns_client.h
index 13aa0bf8..650c7d0 100644
--- a/net/dns/dns_client.h
+++ b/net/dns/dns_client.h
@@ -10,12 +10,14 @@
namespace net {
+class AddressSorter;
struct DnsConfig;
class DnsTransactionFactory;
class NetLog;
-// Convenience wrapper allows easy injection of DnsTransaction into
-// HostResolverImpl.
+// Convenience wrapper which allows easy injection of DnsTransaction into
+// HostResolverImpl. Pointers returned by the Get* methods are only guaranteed
+// to remain valid until next time SetConfig is called.
class NET_EXPORT DnsClient {
public:
virtual ~DnsClient() {}
@@ -29,6 +31,9 @@ class NET_EXPORT DnsClient {
// Returns NULL if the current config is not valid.
virtual DnsTransactionFactory* GetTransactionFactory() = 0;
+ // Returns NULL if the current config is not valid.
+ virtual AddressSorter* GetAddressSorter() = 0;
+
// Creates default client.
static scoped_ptr<DnsClient> CreateClient(NetLog* net_log);
};