OLD | NEW |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 return ADDRESS_FAMILY_UNSPECIFIED; | 104 return ADDRESS_FAMILY_UNSPECIFIED; |
105 } | 105 } |
106 | 106 |
107 void HostResolver::SetDnsClientEnabled(bool enabled) { | 107 void HostResolver::SetDnsClientEnabled(bool enabled) { |
108 } | 108 } |
109 | 109 |
110 HostCache* HostResolver::GetHostCache() { | 110 HostCache* HostResolver::GetHostCache() { |
111 return NULL; | 111 return NULL; |
112 } | 112 } |
113 | 113 |
114 base::Value* HostResolver::GetDnsConfigAsValue() const { | 114 scoped_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { |
115 return NULL; | 115 return NULL; |
116 } | 116 } |
117 | 117 |
118 // static | 118 // static |
119 scoped_ptr<HostResolver> HostResolver::CreateSystemResolver( | 119 scoped_ptr<HostResolver> HostResolver::CreateSystemResolver( |
120 const Options& options, | 120 const Options& options, |
121 NetLog* net_log) { | 121 NetLog* net_log) { |
122 return scoped_ptr<HostResolver>(new HostResolverImpl(options, net_log)); | 122 return scoped_ptr<HostResolver>(new HostResolverImpl(options, net_log)); |
123 } | 123 } |
124 | 124 |
125 // static | 125 // static |
126 scoped_ptr<HostResolver> HostResolver::CreateDefaultResolver(NetLog* net_log) { | 126 scoped_ptr<HostResolver> HostResolver::CreateDefaultResolver(NetLog* net_log) { |
127 return scoped_ptr<HostResolver>(new HostResolverImpl(Options(), net_log)); | 127 return scoped_ptr<HostResolver>(new HostResolverImpl(Options(), net_log)); |
128 } | 128 } |
129 | 129 |
130 HostResolver::HostResolver() { | 130 HostResolver::HostResolver() { |
131 } | 131 } |
132 | 132 |
133 } // namespace net | 133 } // namespace net |
OLD | NEW |