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

Unified Diff: net/dns/dns_client.cc

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 | « net/dns/dns_client.h ('k') | net/dns/dns_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_client.cc
diff --git a/net/dns/dns_client.cc b/net/dns/dns_client.cc
index 274cefa19d0af2c892ad5f6715cf838e15b1ceec..f22104d45eab4d1c1380332ead11287e37d88083 100644
--- a/net/dns/dns_client.cc
+++ b/net/dns/dns_client.cc
@@ -56,6 +56,18 @@ class DnsClientImpl : public DnsClient {
AddressSorter* GetAddressSorter() override { return address_sorter_.get(); }
+ std::unique_ptr<const base::Value> GetPersistentData() const override {
+ if (!session_)
+ return std::unique_ptr<const base::Value>();
+ return session_->GetPersistentData();
+ }
+
+ void ApplyPersistentData(const base::Value& data) override {
+ if (!session_)
+ return;
+ session_->ApplyPersistentData(data);
+ }
+
private:
scoped_refptr<DnsSession> session_;
std::unique_ptr<DnsTransactionFactory> factory_;
« no previous file with comments | « net/dns/dns_client.h ('k') | net/dns/dns_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698