| 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_DNS_CONFIG_SERVICE_H_ | 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_H_ |
| 6 #define NET_DNS_DNS_CONFIG_SERVICE_H_ | 6 #define NET_DNS_DNS_CONFIG_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "net/base/ip_endpoint.h" // win requires size of IPEndPoint | 21 #include "net/base/ip_endpoint.h" // win requires size of IPEndPoint |
| 22 #include "net/base/net_export.h" | 22 #include "net/base/net_export.h" |
| 23 #include "net/dns/dns_hosts.h" | 23 #include "net/dns/dns_hosts.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class Value; | 26 class Value; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace net { | 29 namespace net { |
| 30 | 30 |
| 31 class IPAddress; | |
| 32 | |
| 33 // Default to 1 second timeout (before exponential backoff). | 31 // Default to 1 second timeout (before exponential backoff). |
| 34 const int64_t kDnsDefaultTimeoutMs = 1000; | 32 const int64_t kDnsDefaultTimeoutMs = 1000; |
| 35 | 33 |
| 36 // DnsConfig stores configuration of the system resolver. | 34 // DnsConfig stores configuration of the system resolver. |
| 37 struct NET_EXPORT_PRIVATE DnsConfig { | 35 struct NET_EXPORT_PRIVATE DnsConfig { |
| 38 DnsConfig(); | 36 DnsConfig(); |
| 39 DnsConfig(const DnsConfig& other); | 37 DnsConfig(const DnsConfig& other); |
| 40 virtual ~DnsConfig(); | 38 virtual ~DnsConfig(); |
| 41 | 39 |
| 42 bool Equals(const DnsConfig& d) const; | 40 bool Equals(const DnsConfig& d) const; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 173 |
| 176 // Started in Invalidate*, cleared in On*Read. | 174 // Started in Invalidate*, cleared in On*Read. |
| 177 base::OneShotTimer timer_; | 175 base::OneShotTimer timer_; |
| 178 | 176 |
| 179 DISALLOW_COPY_AND_ASSIGN(DnsConfigService); | 177 DISALLOW_COPY_AND_ASSIGN(DnsConfigService); |
| 180 }; | 178 }; |
| 181 | 179 |
| 182 } // namespace net | 180 } // namespace net |
| 183 | 181 |
| 184 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_ | 182 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_ |
| OLD | NEW |