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

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

Issue 11377007: FTP: add net-internals logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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) 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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Resets the members of the transaction so it can be restarted. 125 // Resets the members of the transaction so it can be restarted.
126 void ResetStateForRestart(); 126 void ResetStateForRestart();
127 127
128 void DoCallback(int result); 128 void DoCallback(int result);
129 void OnIOComplete(int result); 129 void OnIOComplete(int result);
130 130
131 // Executes correct ProcessResponse + command_name function based on last 131 // Executes correct ProcessResponse + command_name function based on last
132 // issued command. Returns error code. 132 // issued command. Returns error code.
133 int ProcessCtrlResponse(); 133 int ProcessCtrlResponse();
134 134
135 int SendFtpCommand(const std::string& command, Command cmd); 135 int SendFtpCommand(const std::string& command,
136 const std::string& command_for_log,
137 Command cmd);
136 138
137 // Returns request path suitable to be included in an FTP command. If the path 139 // Returns request path suitable to be included in an FTP command. If the path
138 // will be used as a directory, |is_directory| should be true. 140 // will be used as a directory, |is_directory| should be true.
139 std::string GetRequestPathForFtpCommand(bool is_directory) const; 141 std::string GetRequestPathForFtpCommand(bool is_directory) const;
140 142
141 // See if the request URL contains a typecode and make us respect it. 143 // See if the request URL contains a typecode and make us respect it.
142 void DetectTypecode(); 144 void DetectTypecode();
143 145
144 // Runs the state transition loop. 146 // Runs the state transition loop.
145 int DoLoop(int result); 147 int DoLoop(int result);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 247
246 scoped_ptr<StreamSocket> ctrl_socket_; 248 scoped_ptr<StreamSocket> ctrl_socket_;
247 scoped_ptr<StreamSocket> data_socket_; 249 scoped_ptr<StreamSocket> data_socket_;
248 250
249 State next_state_; 251 State next_state_;
250 }; 252 };
251 253
252 } // namespace net 254 } // namespace net
253 255
254 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ 256 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698