Chromium Code Reviews| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 allow_cached_response_(true), | 96 allow_cached_response_(true), |
| 97 is_speculative_(false), | 97 is_speculative_(false), |
| 98 is_my_ip_address_(false) {} | 98 is_my_ip_address_(false) {} |
| 99 | 99 |
| 100 HostResolver::~HostResolver() { | 100 HostResolver::~HostResolver() { |
| 101 } | 101 } |
| 102 | 102 |
| 103 void HostResolver::SetDnsClientEnabled(bool enabled) { | 103 void HostResolver::SetDnsClientEnabled(bool enabled) { |
| 104 } | 104 } |
| 105 | 105 |
| 106 void HostResolver::ChangeRequestPriority(RequestHandle req, | |
| 107 RequestPriority priority) { | |
| 108 NOTIMPLEMENTED(); | |
|
Randy Smith (Not in Mondays)
2016/04/28 18:04:40
Why NOTIMPLEMENTED() rather than =0 in the declara
Julia Tuttle
2016/05/04 14:43:20
Didn't want to update the dozen unittest mocks tha
| |
| 109 } | |
| 110 | |
| 106 HostCache* HostResolver::GetHostCache() { | 111 HostCache* HostResolver::GetHostCache() { |
| 107 return NULL; | 112 return NULL; |
| 108 } | 113 } |
| 109 | 114 |
| 110 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { | 115 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { |
| 111 return nullptr; | 116 return nullptr; |
| 112 } | 117 } |
| 113 | 118 |
| 114 // static | 119 // static |
| 115 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( | 120 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( |
| 116 const Options& options, | 121 const Options& options, |
| 117 NetLog* net_log) { | 122 NetLog* net_log) { |
| 118 return std::unique_ptr<HostResolver>(new HostResolverImpl(options, net_log)); | 123 return std::unique_ptr<HostResolver>(new HostResolverImpl(options, net_log)); |
| 119 } | 124 } |
| 120 | 125 |
| 121 // static | 126 // static |
| 122 std::unique_ptr<HostResolver> HostResolver::CreateDefaultResolver( | 127 std::unique_ptr<HostResolver> HostResolver::CreateDefaultResolver( |
| 123 NetLog* net_log) { | 128 NetLog* net_log) { |
| 124 return std::unique_ptr<HostResolver>( | 129 return std::unique_ptr<HostResolver>( |
| 125 new HostResolverImpl(Options(), net_log)); | 130 new HostResolverImpl(Options(), net_log)); |
| 126 } | 131 } |
| 127 | 132 |
| 128 HostResolver::HostResolver() { | 133 HostResolver::HostResolver() { |
| 129 } | 134 } |
| 130 | 135 |
| 131 } // namespace net | 136 } // namespace net |
| OLD | NEW |