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_DNS_CLIENT_H_ | 5 #ifndef NET_DNS_DNS_CLIENT_H_ |
6 #define NET_DNS_DNS_CLIENT_H_ | 6 #define NET_DNS_DNS_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/string_piece.h" |
14 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
15 | 16 |
16 namespace base { | |
17 class StringPiece; | |
18 } | |
19 | |
20 namespace net { | 17 namespace net { |
21 | 18 |
22 class BoundNetLog; | 19 class BoundNetLog; |
23 class ClientSocketFactory; | 20 class ClientSocketFactory; |
24 class DnsResponse; | 21 class DnsResponse; |
25 class DnsSession; | 22 class DnsSession; |
26 | 23 |
27 // DnsClient performs asynchronous DNS queries. DnsClient takes care of | 24 // DnsClient performs asynchronous DNS queries. DnsClient takes care of |
28 // retransmissions, DNS server fallback (or round-robin), suffix search, and | 25 // retransmissions, DNS server fallback (or round-robin), suffix search, and |
29 // simple response validation ("does it match the query") to fight poisoning. | 26 // simple response validation ("does it match the query") to fight poisoning. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const BoundNetLog& source_net_log) WARN_UNUSED_RESULT = 0; | 81 const BoundNetLog& source_net_log) WARN_UNUSED_RESULT = 0; |
85 | 82 |
86 // Creates a socket-based DnsClient using the |session|. | 83 // Creates a socket-based DnsClient using the |session|. |
87 static DnsClient* CreateClient(DnsSession* session) WARN_UNUSED_RESULT; | 84 static DnsClient* CreateClient(DnsSession* session) WARN_UNUSED_RESULT; |
88 }; | 85 }; |
89 | 86 |
90 } // namespace net | 87 } // namespace net |
91 | 88 |
92 #endif // NET_DNS_DNS_CLIENT_H_ | 89 #endif // NET_DNS_DNS_CLIENT_H_ |
93 | 90 |
OLD | NEW |