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_BASE_HOST_RESOLVER_IMPL_H_ | 5 #ifndef NET_BASE_HOST_RESOLVER_IMPL_H_ |
6 #define NET_BASE_HOST_RESOLVER_IMPL_H_ | 6 #define NET_BASE_HOST_RESOLVER_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "net/base/capturing_net_log.h" | 18 #include "net/base/capturing_net_log.h" |
19 #include "net/base/host_cache.h" | 19 #include "net/base/host_cache.h" |
20 #include "net/base/host_resolver.h" | 20 #include "net/base/host_resolver.h" |
21 #include "net/base/host_resolver_proc.h" | 21 #include "net/base/host_resolver_proc.h" |
22 #include "net/base/net_export.h" | 22 #include "net/base/net_export.h" |
23 #include "net/base/net_log.h" | 23 #include "net/base/net_log.h" |
24 #include "net/base/network_change_notifier.h" | 24 #include "net/base/network_change_notifier.h" |
25 #include "net/base/prioritized_dispatcher.h" | 25 #include "net/base/prioritized_dispatcher.h" |
26 #include "net/dns/dns_client.h" | |
27 #include "net/dns/dns_config_service.h" | |
28 | 26 |
29 namespace net { | 27 namespace net { |
30 | 28 |
29 class DnsClient; | |
30 struct DnsConfig; | |
31 class DnsConfigService; | |
mmenke
2012/06/07 18:32:34
I believe you can do the same for net_log.h as wel
| |
32 | |
31 // For each hostname that is requested, HostResolver creates a | 33 // For each hostname that is requested, HostResolver creates a |
32 // HostResolverImpl::Job. When this job gets dispatched it creates a ProcTask | 34 // HostResolverImpl::Job. When this job gets dispatched it creates a ProcTask |
33 // which runs the given HostResolverProc on a WorkerPool thread. If requests for | 35 // which runs the given HostResolverProc on a WorkerPool thread. If requests for |
34 // that same host are made during the job's lifetime, they are attached to the | 36 // that same host are made during the job's lifetime, they are attached to the |
35 // existing job rather than creating a new one. This avoids doing parallel | 37 // existing job rather than creating a new one. This avoids doing parallel |
36 // resolves for the same host. | 38 // resolves for the same host. |
37 // | 39 // |
38 // The way these classes fit together is illustrated by: | 40 // The way these classes fit together is illustrated by: |
39 // | 41 // |
40 // | 42 // |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
272 HostResolverFlags additional_resolver_flags_; | 274 HostResolverFlags additional_resolver_flags_; |
273 | 275 |
274 NetLog* net_log_; | 276 NetLog* net_log_; |
275 | 277 |
276 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 278 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
277 }; | 279 }; |
278 | 280 |
279 } // namespace net | 281 } // namespace net |
280 | 282 |
281 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 283 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
OLD | NEW |