| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // The transaction will run |callback| upon asynchronous completion. | 61 // The transaction will run |callback| upon asynchronous completion. |
| 62 // The |net_log| is used as the parent log. | 62 // The |net_log| is used as the parent log. |
| 63 virtual scoped_ptr<DnsTransaction> CreateTransaction( | 63 virtual scoped_ptr<DnsTransaction> CreateTransaction( |
| 64 const std::string& hostname, | 64 const std::string& hostname, |
| 65 uint16 qtype, | 65 uint16 qtype, |
| 66 const CallbackType& callback, | 66 const CallbackType& callback, |
| 67 const BoundNetLog& net_log) WARN_UNUSED_RESULT = 0; | 67 const BoundNetLog& net_log) WARN_UNUSED_RESULT = 0; |
| 68 | 68 |
| 69 // Creates a DnsTransactionFactory which creates DnsTransactionImpl using the | 69 // Creates a DnsTransactionFactory which creates DnsTransactionImpl using the |
| 70 // |session|. | 70 // |session|. |
| 71 static scoped_ptr<DnsTransactionFactory> CreateFactory( | 71 static scoped_ptr<DnsTransactionFactory> CreateFactory(DnsSession* session) |
| 72 DnsSession* session) WARN_UNUSED_RESULT; | 72 WARN_UNUSED_RESULT; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace net | 75 } // namespace net |
| 76 | 76 |
| 77 #endif // NET_DNS_DNS_TRANSACTION_H_ | 77 #endif // NET_DNS_DNS_TRANSACTION_H_ |
| 78 | |
| OLD | NEW |