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

Side by Side Diff: net/ftp/ftp_network_transaction.h

Issue 118100: Avoid doing concurrent DNS resolves of the same hostname (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get compiling on mac Created 11 years, 6 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) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef NET_FTP_FTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_FTP_FTP_NETWORK_TRANSACTION_H_
6 #define NET_FTP_FTP_NETWORK_TRANSACTION_H_ 6 #define NET_FTP_FTP_NETWORK_TRANSACTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 Command command_sent_; 135 Command command_sent_;
136 136
137 CompletionCallbackImpl<FtpNetworkTransaction> io_callback_; 137 CompletionCallbackImpl<FtpNetworkTransaction> io_callback_;
138 CompletionCallback* user_callback_; 138 CompletionCallback* user_callback_;
139 139
140 scoped_refptr<FtpNetworkSession> session_; 140 scoped_refptr<FtpNetworkSession> session_;
141 141
142 const FtpRequestInfo* request_; 142 const FtpRequestInfo* request_;
143 FtpResponseInfo response_; 143 FtpResponseInfo response_;
144 144
145 HostResolver resolver_; 145 // Cancels the outstanding request on destruction.
146 SingleRequestHostResolver resolver_;
146 AddressList addresses_; 147 AddressList addresses_;
147 148
148 // User buffer and length passed to the Read method. 149 // User buffer and length passed to the Read method.
149 scoped_refptr<IOBuffer> read_ctrl_buf_; 150 scoped_refptr<IOBuffer> read_ctrl_buf_;
150 int read_ctrl_buf_size_; 151 int read_ctrl_buf_size_;
151 152
152 scoped_refptr<IOBuffer> response_message_buf_; 153 scoped_refptr<IOBuffer> response_message_buf_;
153 int response_message_buf_len_; 154 int response_message_buf_len_;
154 155
155 scoped_refptr<IOBuffer> read_data_buf_; 156 scoped_refptr<IOBuffer> read_data_buf_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 STATE_DATA_READ, 203 STATE_DATA_READ,
203 STATE_DATA_READ_COMPLETE, 204 STATE_DATA_READ_COMPLETE,
204 STATE_NONE 205 STATE_NONE
205 }; 206 };
206 State next_state_; 207 State next_state_;
207 }; 208 };
208 209
209 } // namespace net 210 } // namespace net
210 211
211 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ 212 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698