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

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: Rebased to master. 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
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 20 matching lines...) Expand all
31 31
32 // Returns the original |hostname|. 32 // Returns the original |hostname|.
33 virtual const std::string& GetHostname() const = 0; 33 virtual const std::string& GetHostname() const = 0;
34 34
35 // Returns the |qtype|. 35 // Returns the |qtype|.
36 virtual uint16 GetType() const = 0; 36 virtual uint16 GetType() const = 0;
37 37
38 // Starts the transaction. Returns the net error on synchronous failure or 38 // Starts the transaction. Returns the net error on synchronous failure or
39 // ERR_IO_PENDING in which case the result will be passed via the callback. 39 // ERR_IO_PENDING in which case the result will be passed via the callback.
40 virtual int Start() = 0; 40 virtual int Start() = 0;
41
42 // Returns the BoundNetLog for this transaction.
43 virtual const BoundNetLog& net_log() const = 0;
mmenke 2012/02/15 19:54:16 Since this is virtual, should be called something
41 }; 44 };
42 45
43 // Creates DnsTransaction which performs asynchronous DNS search. 46 // Creates DnsTransaction which performs asynchronous DNS search.
44 // It does NOT perform caching, aggregation or prioritization of transactions. 47 // It does NOT perform caching, aggregation or prioritization of transactions.
45 // 48 //
46 // Destroying the factory does NOT affect any already created DnsTransactions. 49 // Destroying the factory does NOT affect any already created DnsTransactions.
47 class NET_EXPORT_PRIVATE DnsTransactionFactory { 50 class NET_EXPORT_PRIVATE DnsTransactionFactory {
48 public: 51 public:
49 // Called with the response or NULL if no matching response was received. 52 // Called with the response or NULL if no matching response was received.
50 // Note that the |GetDottedName()| of the response may be different than the 53 // Note that the |GetDottedName()| of the response may be different than the
(...skipping 20 matching lines...) Expand all
71 // Creates a DnsTransactionFactory which creates DnsTransactionImpl using the 74 // Creates a DnsTransactionFactory which creates DnsTransactionImpl using the
72 // |session|. 75 // |session|.
73 static scoped_ptr<DnsTransactionFactory> CreateFactory( 76 static scoped_ptr<DnsTransactionFactory> CreateFactory(
74 DnsSession* session) WARN_UNUSED_RESULT; 77 DnsSession* session) WARN_UNUSED_RESULT;
75 }; 78 };
76 79
77 } // namespace net 80 } // namespace net
78 81
79 #endif // NET_DNS_DNS_TRANSACTION_H_ 82 #endif // NET_DNS_DNS_TRANSACTION_H_
80 83
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698