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_HOSTS_H_ | 5 #ifndef NET_DNS_DNS_HOSTS_H_ |
6 #define NET_DNS_DNS_HOSTS_H_ | 6 #define NET_DNS_DNS_HOSTS_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <string> | 11 #include <string> |
10 #include <utility> | 12 #include <utility> |
11 #include <vector> | 13 #include <vector> |
12 | 14 |
13 #include "base/basictypes.h" | |
14 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
16 #include "net/base/address_family.h" | 17 #include "net/base/address_family.h" |
17 #include "net/base/ip_address_number.h" | 18 #include "net/base/ip_address_number.h" |
18 #include "net/base/net_export.h" | 19 #include "net/base/net_export.h" |
19 | 20 |
20 namespace net { | 21 namespace net { |
21 typedef std::pair<std::string, AddressFamily> DnsHostsKey; | 22 typedef std::pair<std::string, AddressFamily> DnsHostsKey; |
22 }; | 23 }; |
23 | 24 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // As above but reads the file pointed to by |path|. | 82 // As above but reads the file pointed to by |path|. |
82 bool NET_EXPORT_PRIVATE ParseHostsFile(const base::FilePath& path, | 83 bool NET_EXPORT_PRIVATE ParseHostsFile(const base::FilePath& path, |
83 DnsHosts* dns_hosts); | 84 DnsHosts* dns_hosts); |
84 | 85 |
85 | 86 |
86 | 87 |
87 } // namespace net | 88 } // namespace net |
88 | 89 |
89 #endif // NET_DNS_DNS_HOSTS_H_ | 90 #endif // NET_DNS_DNS_HOSTS_H_ |
90 | 91 |
OLD | NEW |