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

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

Issue 9369045: [net] HostResolverImpl + DnsTransaction + DnsConfigService = Asynchronous DNS ready for experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Denitted. Created 8 years, 10 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 | « net/dns/dns_test_util.h ('k') | net/dns/dns_transaction.cc » ('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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const DnsResponse* response)> CallbackType; 54 const DnsResponse* response)> CallbackType;
55 55
56 virtual ~DnsTransactionFactory() {} 56 virtual ~DnsTransactionFactory() {}
57 57
58 // Creates DnsTransaction for the given |hostname| and |qtype| (assuming 58 // Creates DnsTransaction for the given |hostname| and |qtype| (assuming
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 source of |source_net_log| is used as source dependency in log. 64 // The |net_log| is used as the parent log.
65 virtual scoped_ptr<DnsTransaction> CreateTransaction( 65 virtual scoped_ptr<DnsTransaction> CreateTransaction(
66 const std::string& hostname, 66 const std::string& hostname,
67 uint16 qtype, 67 uint16 qtype,
68 const CallbackType& callback, 68 const CallbackType& callback,
69 const BoundNetLog& source_net_log) WARN_UNUSED_RESULT = 0; 69 const BoundNetLog& 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 scoped_ptr<DnsTransactionFactory> CreateFactory( 73 static scoped_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
« no previous file with comments | « net/dns/dns_test_util.h ('k') | net/dns/dns_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698