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

Unified Diff: net/dns/dns_client.h

Issue 1898033006: DNS: Add stubs for persisting data across restarts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: *silently glares at editor, reuploads with proper spacing* Created 4 years, 5 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/dns_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | net/dns/dns_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698