| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |