OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MDNS_CACHE_H_ | 5 #ifndef NET_DNS_MDNS_CACHE_H_ |
6 #define NET_DNS_MDNS_CACHE_H_ | 6 #define NET_DNS_MDNS_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class ParsedDnsRecord; | 19 class ParsedDnsRecord; |
20 class RecordParsed; | 20 class RecordParsed; |
21 | 21 |
22 // mDNS Cache | 22 // mDNS Cache |
23 // This is a cache of mDNS records. It keeps track of expiration times and is | 23 // This is a cache of mDNS records. It keeps track of expiration times and is |
24 // guaranteed not to return expired records. It also has facilities for timely | 24 // guaranteed not to return expired records. It also has facilities for timely |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 RecordMap mdns_cache_; | 106 RecordMap mdns_cache_; |
107 | 107 |
108 base::Time next_expiration_; | 108 base::Time next_expiration_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(MDnsCache); | 110 DISALLOW_COPY_AND_ASSIGN(MDnsCache); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_DNS_MDNS_CACHE_H_ | 115 #endif // NET_DNS_MDNS_CACHE_H_ |
OLD | NEW |