Chromium Code Reviews

Unified Diff: net/ftp/ftp_network_transaction.h

Issue 173270: Implement RestartWithAuth for NewFtpTransaction. (Closed)
Patch Set: win compile fixes Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | net/ftp/ftp_network_transaction.cc » ('j') | net/ftp/ftp_network_transaction.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_network_transaction.h
diff --git a/net/ftp/ftp_network_transaction.h b/net/ftp/ftp_network_transaction.h
index 447d2714c8b85bd43e670e1e90235981743afdcb..25bc02af046723d7e8c40e257641ebef6934282a 100644
--- a/net/ftp/ftp_network_transaction.h
+++ b/net/ftp/ftp_network_transaction.h
@@ -85,6 +85,9 @@ class FtpNetworkTransaction : public FtpTransaction {
ERROR_CLASS_PERMANENT_ERROR,
};
+ // Resets the members of the transaction so it can be restarted.
+ void ResetStateForRestart();
+
void DoCallback(int result);
void OnIOComplete(int result);
@@ -167,7 +170,7 @@ class FtpNetworkTransaction : public FtpTransaction {
// User buffer passed to the Read method for control socket.
scoped_refptr<IOBuffer> read_ctrl_buf_;
- FtpCtrlResponseBuffer ctrl_response_buffer_;
+ scoped_ptr<FtpCtrlResponseBuffer> ctrl_response_buffer_;
scoped_refptr<IOBuffer> read_data_buf_;
int read_data_buf_len_;
@@ -186,7 +189,8 @@ class FtpNetworkTransaction : public FtpTransaction {
int last_error_;
- bool is_anonymous_;
+ std::wstring username_;
+ std::wstring password_;
wtc 2009/08/25 20:52:50 Nit: add a blank line to separate these from retr_
bool retr_failed_;
std::string data_connection_ip_;
« no previous file with comments | « no previous file | net/ftp/ftp_network_transaction.cc » ('j') | net/ftp/ftp_network_transaction.cc » ('J')

Powered by Google App Engine