Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(834)

Side by Side Diff: net/base/host_resolver_impl.h

Issue 10442098: [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses according to RFC3484. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle ifa_netmnask == NULL and other errors after getifaddrs. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/base/host_resolver_impl.cc » ('j') | net/dns/address_sorter_posix.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "net/base/capturing_net_log.h" 17 #include "net/base/capturing_net_log.h"
18 #include "net/base/host_cache.h" 18 #include "net/base/host_cache.h"
19 #include "net/base/host_resolver.h" 19 #include "net/base/host_resolver.h"
20 #include "net/base/host_resolver_proc.h" 20 #include "net/base/host_resolver_proc.h"
21 #include "net/base/net_export.h" 21 #include "net/base/net_export.h"
22 #include "net/base/net_log.h"
23 #include "net/base/network_change_notifier.h" 22 #include "net/base/network_change_notifier.h"
24 #include "net/base/prioritized_dispatcher.h" 23 #include "net/base/prioritized_dispatcher.h"
25 #include "net/dns/dns_client.h"
26 #include "net/dns/dns_config_service.h"
27 24
28 namespace net { 25 namespace net {
29 26
27 class BoundNetLog;
28 class DnsClient;
29 struct DnsConfig;
30 class DnsConfigService;
31 class NetLog;
32
30 // For each hostname that is requested, HostResolver creates a 33 // For each hostname that is requested, HostResolver creates a
31 // HostResolverImpl::Job. When this job gets dispatched it creates a ProcTask 34 // HostResolverImpl::Job. When this job gets dispatched it creates a ProcTask
32 // 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
33 // 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
34 // 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
35 // resolves for the same host. 38 // resolves for the same host.
36 // 39 //
37 // The way these classes fit together is illustrated by: 40 // The way these classes fit together is illustrated by:
38 // 41 //
39 // 42 //
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 HostResolverFlags additional_resolver_flags_; 274 HostResolverFlags additional_resolver_flags_;
272 275
273 NetLog* net_log_; 276 NetLog* net_log_;
274 277
275 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); 278 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl);
276 }; 279 };
277 280
278 } // namespace net 281 } // namespace net
279 282
280 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ 283 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/host_resolver_impl.cc » ('j') | net/dns/address_sorter_posix.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698