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

Side by Side Diff: net/dns/host_resolver.h

Issue 2366893002: net: address review comments for NetLogWithSource renaming (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « net/dns/dns_transaction.h ('k') | net/dns/host_resolver_impl.h » ('j') | no next file with comments »
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_DNS_HOST_RESOLVER_H_ 5 #ifndef NET_DNS_HOST_RESOLVER_H_
6 #define NET_DNS_HOST_RESOLVER_H_ 6 #define NET_DNS_HOST_RESOLVER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "net/base/address_family.h" 15 #include "net/base/address_family.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
18 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
19 #include "net/base/prioritized_dispatcher.h" 19 #include "net/base/prioritized_dispatcher.h"
20 #include "net/base/request_priority.h" 20 #include "net/base/request_priority.h"
21 #include "net/dns/host_cache.h" 21 #include "net/dns/host_cache.h"
22 22
23 namespace base { 23 namespace base {
24 class Value; 24 class Value;
25 } 25 }
26 26
27 namespace net { 27 namespace net {
28 28
29 class AddressList; 29 class AddressList;
30 class NetLogWithSource;
31 class HostResolverImpl; 30 class HostResolverImpl;
32 class HostResolverProc; 31 class HostResolverProc;
33 class NetLog; 32 class NetLog;
33 class NetLogWithSource;
34 34
35 // This class represents the task of resolving hostnames (or IP address 35 // This class represents the task of resolving hostnames (or IP address
36 // literal) to an AddressList object. 36 // literal) to an AddressList object.
37 // 37 //
38 // HostResolver can handle multiple requests at a time, so when cancelling a 38 // HostResolver can handle multiple requests at a time, so when cancelling a
39 // request the RequestHandle that was returned by Resolve() needs to be 39 // request the RequestHandle that was returned by Resolve() needs to be
40 // given. A simpler alternative for consumers that only have 1 outstanding 40 // given. A simpler alternative for consumers that only have 1 outstanding
41 // request at a time is to create a SingleRequestHostResolver wrapper around 41 // request at a time is to create a SingleRequestHostResolver wrapper around
42 // HostResolver (which will automatically cancel the single request when it 42 // HostResolver (which will automatically cancel the single request when it
43 // goes out of scope). 43 // goes out of scope).
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 protected: 235 protected:
236 HostResolver(); 236 HostResolver();
237 237
238 private: 238 private:
239 DISALLOW_COPY_AND_ASSIGN(HostResolver); 239 DISALLOW_COPY_AND_ASSIGN(HostResolver);
240 }; 240 };
241 241
242 } // namespace net 242 } // namespace net
243 243
244 #endif // NET_DNS_HOST_RESOLVER_H_ 244 #endif // NET_DNS_HOST_RESOLVER_H_
OLDNEW
« no previous file with comments | « net/dns/dns_transaction.h ('k') | net/dns/host_resolver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698