Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 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 net_log for this transaction. | |
|
mmenke
2012/02/14 18:46:00
nit: "BoundNetLog". |net_log| is a private varia
| |
| 43 virtual const BoundNetLog& net_log() const = 0; | |
| 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 Loading... | |
| 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 |
| OLD | NEW |