OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MOCK_HOST_RESOLVER_H_ | 5 #ifndef NET_DNS_MOCK_HOST_RESOLVER_H_ |
6 #define NET_DNS_MOCK_HOST_RESOLVER_H_ | 6 #define NET_DNS_MOCK_HOST_RESOLVER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <list> | 10 #include <list> |
9 #include <map> | 11 #include <map> |
10 | 12 |
| 13 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
12 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
13 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
14 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
15 #include "net/dns/host_resolver.h" | 18 #include "net/dns/host_resolver.h" |
16 #include "net/dns/host_resolver_proc.h" | 19 #include "net/dns/host_resolver_proc.h" |
17 | 20 |
18 namespace net { | 21 namespace net { |
19 | 22 |
20 class HostCache; | 23 class HostCache; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 void Init(HostResolverProc* proc); | 266 void Init(HostResolverProc* proc); |
264 | 267 |
265 private: | 268 private: |
266 scoped_refptr<HostResolverProc> current_proc_; | 269 scoped_refptr<HostResolverProc> current_proc_; |
267 scoped_refptr<HostResolverProc> previous_proc_; | 270 scoped_refptr<HostResolverProc> previous_proc_; |
268 }; | 271 }; |
269 | 272 |
270 } // namespace net | 273 } // namespace net |
271 | 274 |
272 #endif // NET_DNS_MOCK_HOST_RESOLVER_H_ | 275 #endif // NET_DNS_MOCK_HOST_RESOLVER_H_ |
OLD | NEW |