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

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

Issue 2214693002: First step to remove SingleRequestHostResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: single Created 4 years, 4 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
« no previous file with comments | « net/dns/host_resolver_impl.cc ('k') | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "net/base/address_list.h" 17 #include "net/base/address_list.h"
18 #include "net/base/auth.h" 18 #include "net/base/auth.h"
19 #include "net/dns/host_resolver.h" 19 #include "net/dns/host_resolver.h"
20 #include "net/dns/single_request_host_resolver.h"
21 #include "net/ftp/ftp_ctrl_response_buffer.h" 20 #include "net/ftp/ftp_ctrl_response_buffer.h"
22 #include "net/ftp/ftp_response_info.h" 21 #include "net/ftp/ftp_response_info.h"
23 #include "net/ftp/ftp_transaction.h" 22 #include "net/ftp/ftp_transaction.h"
24 #include "net/log/net_log.h" 23 #include "net/log/net_log.h"
25 24
26 namespace net { 25 namespace net {
27 26
28 class ClientSocketFactory; 27 class ClientSocketFactory;
29 class StreamSocket; 28 class StreamSocket;
30 29
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 Command command_sent_; 199 Command command_sent_;
201 200
202 CompletionCallback io_callback_; 201 CompletionCallback io_callback_;
203 CompletionCallback user_callback_; 202 CompletionCallback user_callback_;
204 203
205 BoundNetLog net_log_; 204 BoundNetLog net_log_;
206 const FtpRequestInfo* request_; 205 const FtpRequestInfo* request_;
207 FtpResponseInfo response_; 206 FtpResponseInfo response_;
208 207
209 // Cancels the outstanding request on destruction. 208 // Cancels the outstanding request on destruction.
210 SingleRequestHostResolver resolver_; 209 HostResolver* resolver_;
211 AddressList addresses_; 210 AddressList addresses_;
211 std::unique_ptr<HostResolver::Request> resolve_request_;
212 212
213 // User buffer passed to the Read method for control socket. 213 // User buffer passed to the Read method for control socket.
214 scoped_refptr<IOBuffer> read_ctrl_buf_; 214 scoped_refptr<IOBuffer> read_ctrl_buf_;
215 215
216 std::unique_ptr<FtpCtrlResponseBuffer> ctrl_response_buffer_; 216 std::unique_ptr<FtpCtrlResponseBuffer> ctrl_response_buffer_;
217 217
218 scoped_refptr<IOBuffer> read_data_buf_; 218 scoped_refptr<IOBuffer> read_data_buf_;
219 int read_data_buf_len_; 219 int read_data_buf_len_;
220 220
221 // Buffer holding the command line to be written to the control socket. 221 // Buffer holding the command line to be written to the control socket.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 State next_state_; 255 State next_state_;
256 256
257 // State to switch to after data connection is complete. 257 // State to switch to after data connection is complete.
258 State state_after_data_connect_complete_; 258 State state_after_data_connect_complete_;
259 }; 259 };
260 260
261 } // namespace net 261 } // namespace net
262 262
263 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ 263 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/dns/host_resolver_impl.cc ('k') | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698