OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 scoped_ptr<DnsQuery> query_; | 86 scoped_ptr<DnsQuery> query_; |
87 ResultCallback callback_; | 87 ResultCallback callback_; |
88 scoped_ptr<DnsResponse> response_; | 88 scoped_ptr<DnsResponse> response_; |
89 scoped_ptr<DatagramClientSocket> socket_; | 89 scoped_ptr<DatagramClientSocket> socket_; |
90 | 90 |
91 // Number of retry attempts so far. | 91 // Number of retry attempts so far. |
92 int attempts_; | 92 int attempts_; |
93 | 93 |
94 State next_state_; | 94 State next_state_; |
95 base::OneShotTimer<DnsTransaction> timer_; | 95 base::OneShotTimer<DnsTransaction> timer_; |
96 OldCompletionCallbackImpl<DnsTransaction> io_callback_; | |
97 | 96 |
98 BoundNetLog net_log_; | 97 BoundNetLog net_log_; |
99 | 98 |
100 DISALLOW_COPY_AND_ASSIGN(DnsTransaction); | 99 DISALLOW_COPY_AND_ASSIGN(DnsTransaction); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace net | 102 } // namespace net |
104 | 103 |
105 #endif // NET_DNS_DNS_TRANSACTION_H_ | 104 #endif // NET_DNS_DNS_TRANSACTION_H_ |
OLD | NEW |