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_CACHE_H_ | 5 #ifndef NET_DNS_HOST_CACHE_H_ |
6 #define NET_DNS_HOST_CACHE_H_ | 6 #define NET_DNS_HOST_CACHE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <functional> | 10 #include <functional> |
9 #include <string> | 11 #include <string> |
10 #include <tuple> | 12 #include <tuple> |
11 | 13 |
12 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
14 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
15 #include "base/time/time.h" | 18 #include "base/time/time.h" |
16 #include "net/base/address_family.h" | 19 #include "net/base/address_family.h" |
17 #include "net/base/address_list.h" | 20 #include "net/base/address_list.h" |
18 #include "net/base/expiring_cache.h" | 21 #include "net/base/expiring_cache.h" |
19 #include "net/base/net_export.h" | 22 #include "net/base/net_export.h" |
20 | 23 |
21 namespace net { | 24 namespace net { |
22 | 25 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Map from hostname (presumably in lowercase canonicalized format) to | 118 // Map from hostname (presumably in lowercase canonicalized format) to |
116 // a resolved result entry. | 119 // a resolved result entry. |
117 EntryMap entries_; | 120 EntryMap entries_; |
118 | 121 |
119 DISALLOW_COPY_AND_ASSIGN(HostCache); | 122 DISALLOW_COPY_AND_ASSIGN(HostCache); |
120 }; | 123 }; |
121 | 124 |
122 } // namespace net | 125 } // namespace net |
123 | 126 |
124 #endif // NET_DNS_HOST_CACHE_H_ | 127 #endif // NET_DNS_HOST_CACHE_H_ |
OLD | NEW |