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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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
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_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 BoundNetLog; 19 class NetLogWithSource;
20 class DnsResponse; 20 class DnsResponse;
21 class DnsSession; 21 class DnsSession;
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 {
(...skipping 29 matching lines...) Expand all
59 // QCLASS is IN). |hostname| should be in the dotted form. A dot at the end 59 // QCLASS is IN). |hostname| should be in the dotted form. A dot at the end
60 // implies the domain name is fully-qualified and will be exempt from suffix 60 // implies the domain name is fully-qualified and will be exempt from suffix
61 // search. |hostname| should not be an IP literal. 61 // search. |hostname| should not be an IP literal.
62 // 62 //
63 // The transaction will run |callback| upon asynchronous completion. 63 // The transaction will run |callback| upon asynchronous completion.
64 // The |net_log| is used as the parent log. 64 // The |net_log| is used as the parent log.
65 virtual std::unique_ptr<DnsTransaction> CreateTransaction( 65 virtual std::unique_ptr<DnsTransaction> CreateTransaction(
66 const std::string& hostname, 66 const std::string& hostname,
67 uint16_t qtype, 67 uint16_t qtype,
68 const CallbackType& callback, 68 const CallbackType& callback,
69 const BoundNetLog& net_log) WARN_UNUSED_RESULT = 0; 69 const NetLogWithSource& net_log) WARN_UNUSED_RESULT = 0;
70 70
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698