| 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" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "net/base/net_errors.h" |
| 12 #include "net/dns/dns_client.h" | 13 #include "net/dns/dns_client.h" |
| 13 #include "net/dns/dns_config_service.h" | 14 #include "net/dns/dns_config_service.h" |
| 14 #include "net/dns/host_cache.h" | 15 #include "net/dns/host_cache.h" |
| 15 #include "net/dns/host_resolver_impl.h" | 16 #include "net/dns/host_resolver_impl.h" |
| 16 | 17 |
| 17 namespace net { | 18 namespace net { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 // Maximum of 6 concurrent resolver threads (excluding retries). | 22 // Maximum of 6 concurrent resolver threads (excluding retries). |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 103 |
| 103 void HostResolver::SetDnsClientEnabled(bool enabled) { | 104 void HostResolver::SetDnsClientEnabled(bool enabled) { |
| 104 } | 105 } |
| 105 | 106 |
| 106 void HostResolver::ChangeRequestPriority(RequestHandle req, | 107 void HostResolver::ChangeRequestPriority(RequestHandle req, |
| 107 RequestPriority priority) { | 108 RequestPriority priority) { |
| 108 NOTIMPLEMENTED(); | 109 NOTIMPLEMENTED(); |
| 109 } | 110 } |
| 110 | 111 |
| 111 HostCache* HostResolver::GetHostCache() { | 112 HostCache* HostResolver::GetHostCache() { |
| 112 return NULL; | 113 return nullptr; |
| 113 } | 114 } |
| 114 | 115 |
| 115 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { | 116 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { |
| 116 return nullptr; | 117 return nullptr; |
| 117 } | 118 } |
| 118 | 119 |
| 119 // static | 120 // static |
| 120 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( | 121 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( |
| 121 const Options& options, | 122 const Options& options, |
| 122 NetLog* net_log) { | 123 NetLog* net_log) { |
| 123 return std::unique_ptr<HostResolver>(new HostResolverImpl(options, net_log)); | 124 return std::unique_ptr<HostResolver>(new HostResolverImpl(options, net_log)); |
| 124 } | 125 } |
| 125 | 126 |
| 126 // static | 127 // static |
| 127 std::unique_ptr<HostResolver> HostResolver::CreateDefaultResolver( | 128 std::unique_ptr<HostResolver> HostResolver::CreateDefaultResolver( |
| 128 NetLog* net_log) { | 129 NetLog* net_log) { |
| 129 return std::unique_ptr<HostResolver>( | 130 return std::unique_ptr<HostResolver>( |
| 130 new HostResolverImpl(Options(), net_log)); | 131 new HostResolverImpl(Options(), net_log)); |
| 131 } | 132 } |
| 132 | 133 |
| 133 HostResolver::HostResolver() { | 134 HostResolver::HostResolver() { |
| 134 } | 135 } |
| 135 | 136 |
| 136 } // namespace net | 137 } // namespace net |
| OLD | NEW |