Index: net/dns/dns_client.h |
diff --git a/net/dns/dns_client.h b/net/dns/dns_client.h |
index bb63aaa541190a1a298302ab2944ec3aaa7e5007..303d68e67759c3253d9c07e46a506142faf7c08c 100644 |
--- a/net/dns/dns_client.h |
+++ b/net/dns/dns_client.h |
@@ -7,6 +7,7 @@ |
#include <memory> |
+#include "base/values.h" |
#include "net/base/net_export.h" |
#include "net/base/rand_callback.h" |
@@ -38,6 +39,13 @@ class NET_EXPORT DnsClient { |
// Returns NULL if the current config is not valid. |
virtual AddressSorter* GetAddressSorter() = 0; |
+ // Does nothing if the current config is not valid. |
+ virtual void ApplyPersistentData(const base::Value& data) = 0; |
+ |
+ // Returns std::unique_ptr<const Value>(NULL) if the current config is not |
+ // valid. |
+ virtual std::unique_ptr<const base::Value> GetPersistentData() const = 0; |
+ |
// Creates default client. |
static std::unique_ptr<DnsClient> CreateClient(NetLog* net_log); |