| 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 #ifndef NET_DNS_HOST_RESOLVER_IMPL_H_ | 5 #ifndef NET_DNS_HOST_RESOLVER_IMPL_H_ |
| 6 #define NET_DNS_HOST_RESOLVER_IMPL_H_ | 6 #define NET_DNS_HOST_RESOLVER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 RequestHandle* out_req, | 132 RequestHandle* out_req, |
| 133 const BoundNetLog& source_net_log) override; | 133 const BoundNetLog& source_net_log) override; |
| 134 int ResolveFromCache(const RequestInfo& info, | 134 int ResolveFromCache(const RequestInfo& info, |
| 135 AddressList* addresses, | 135 AddressList* addresses, |
| 136 const BoundNetLog& source_net_log) override; | 136 const BoundNetLog& source_net_log) override; |
| 137 void CancelRequest(RequestHandle req) override; | 137 void CancelRequest(RequestHandle req) override; |
| 138 void SetDefaultAddressFamily(AddressFamily address_family) override; | 138 void SetDefaultAddressFamily(AddressFamily address_family) override; |
| 139 AddressFamily GetDefaultAddressFamily() const override; | 139 AddressFamily GetDefaultAddressFamily() const override; |
| 140 void SetDnsClientEnabled(bool enabled) override; | 140 void SetDnsClientEnabled(bool enabled) override; |
| 141 HostCache* GetHostCache() override; | 141 HostCache* GetHostCache() override; |
| 142 base::Value* GetDnsConfigAsValue() const override; | 142 scoped_ptr<base::Value> GetDnsConfigAsValue() const override; |
| 143 | 143 |
| 144 void set_proc_params_for_test(const ProcTaskParams& proc_params) { | 144 void set_proc_params_for_test(const ProcTaskParams& proc_params) { |
| 145 proc_params_ = proc_params; | 145 proc_params_ = proc_params; |
| 146 } | 146 } |
| 147 | 147 |
| 148 private: | 148 private: |
| 149 friend class HostResolverImplTest; | 149 friend class HostResolverImplTest; |
| 150 class Job; | 150 class Job; |
| 151 class ProcTask; | 151 class ProcTask; |
| 152 class LoopbackProbeJob; | 152 class LoopbackProbeJob; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 base::WeakPtrFactory<HostResolverImpl> weak_ptr_factory_; | 297 base::WeakPtrFactory<HostResolverImpl> weak_ptr_factory_; |
| 298 | 298 |
| 299 base::WeakPtrFactory<HostResolverImpl> probe_weak_ptr_factory_; | 299 base::WeakPtrFactory<HostResolverImpl> probe_weak_ptr_factory_; |
| 300 | 300 |
| 301 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 301 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 } // namespace net | 304 } // namespace net |
| 305 | 305 |
| 306 #endif // NET_DNS_HOST_RESOLVER_IMPL_H_ | 306 #endif // NET_DNS_HOST_RESOLVER_IMPL_H_ |
| OLD | NEW |