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_DNS_DNS_TRANSACTION_H_ | 5 #ifndef NET_DNS_DNS_TRANSACTION_H_ |
6 #define NET_DNS_DNS_TRANSACTION_H_ | 6 #define NET_DNS_DNS_TRANSACTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class NetLogWithSource; | |
20 class DnsResponse; | 19 class DnsResponse; |
21 class DnsSession; | 20 class DnsSession; |
| 21 class NetLogWithSource; |
22 | 22 |
23 // DnsTransaction implements a stub DNS resolver as defined in RFC 1034. | 23 // DnsTransaction implements a stub DNS resolver as defined in RFC 1034. |
24 // The DnsTransaction takes care of retransmissions, name server fallback (or | 24 // The DnsTransaction takes care of retransmissions, name server fallback (or |
25 // round-robin), suffix search, and simple response validation ("does it match | 25 // round-robin), suffix search, and simple response validation ("does it match |
26 // the query") to fight poisoning. | 26 // the query") to fight poisoning. |
27 // | 27 // |
28 // Destroying DnsTransaction cancels the underlying network effort. | 28 // Destroying DnsTransaction cancels the underlying network effort. |
29 class NET_EXPORT_PRIVATE DnsTransaction { | 29 class NET_EXPORT_PRIVATE DnsTransaction { |
30 public: | 30 public: |
31 virtual ~DnsTransaction() {} | 31 virtual ~DnsTransaction() {} |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Creates a DnsTransactionFactory which creates DnsTransactionImpl using the | 71 // Creates a DnsTransactionFactory which creates DnsTransactionImpl using the |
72 // |session|. | 72 // |session|. |
73 static std::unique_ptr<DnsTransactionFactory> CreateFactory( | 73 static std::unique_ptr<DnsTransactionFactory> CreateFactory( |
74 DnsSession* session) WARN_UNUSED_RESULT; | 74 DnsSession* session) WARN_UNUSED_RESULT; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace net | 77 } // namespace net |
78 | 78 |
79 #endif // NET_DNS_DNS_TRANSACTION_H_ | 79 #endif // NET_DNS_DNS_TRANSACTION_H_ |
80 | 80 |
OLD | NEW |