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

Side by Side Diff: net/dns/host_resolver.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, 4 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 unified diff | Download patch
« no previous file with comments | « net/dns/host_resolver.h ('k') | net/dns/host_resolver_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/dns/host_resolver.h" 5 #include "net/dns/host_resolver.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 HostCache* HostResolver::GetHostCache() { 107 HostCache* HostResolver::GetHostCache() {
108 return nullptr; 108 return nullptr;
109 } 109 }
110 110
111 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { 111 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const {
112 return nullptr; 112 return nullptr;
113 } 113 }
114 114
115 void HostResolver::InitializePersistence(
116 const PersistCallback& persist_callback,
117 std::unique_ptr<const base::Value> old_data) {}
118
115 // static 119 // static
116 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( 120 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver(
117 const Options& options, 121 const Options& options,
118 NetLog* net_log) { 122 NetLog* net_log) {
119 return std::unique_ptr<HostResolver>(new HostResolverImpl(options, net_log)); 123 return std::unique_ptr<HostResolver>(new HostResolverImpl(options, net_log));
120 } 124 }
121 125
122 // static 126 // static
123 std::unique_ptr<HostResolver> HostResolver::CreateDefaultResolver( 127 std::unique_ptr<HostResolver> HostResolver::CreateDefaultResolver(
124 NetLog* net_log) { 128 NetLog* net_log) {
125 return std::unique_ptr<HostResolver>( 129 return std::unique_ptr<HostResolver>(
126 new HostResolverImpl(Options(), net_log)); 130 new HostResolverImpl(Options(), net_log));
127 } 131 }
128 132
129 HostResolver::HostResolver() { 133 HostResolver::HostResolver() {
130 } 134 }
131 135
132 } // namespace net 136 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/host_resolver.h ('k') | net/dns/host_resolver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698