summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_network_transaction.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 11:59:21 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 11:59:21 +0000
commit250e5243ce41f9025442773a038670fc24a4622c (patch)
tree01c5efb2babc434368a9adc288bdc797706d6722 /net/ftp/ftp_network_transaction.h
parent2c8d596cbd1f91a7d6134c7c5b33a188af51d0bc (diff)
downloadchromium_src-250e5243ce41f9025442773a038670fc24a4622c.zip
chromium_src-250e5243ce41f9025442773a038670fc24a4622c.tar.gz
chromium_src-250e5243ce41f9025442773a038670fc24a4622c.tar.bz2
Implement support for MLSD FTP command in FtpNetworkTransaction.
This way we can request the better-parseable MLSD listing, and in case it doesn't work fall back to LIST command. TEST=Covered by net_unittests. BUG=29691 Review URL: http://codereview.chromium.org/500134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp/ftp_network_transaction.h')
-rw-r--r--net/ftp/ftp_network_transaction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ftp/ftp_network_transaction.h b/net/ftp/ftp_network_transaction.h
index 8a11947..e8140f4 100644
--- a/net/ftp/ftp_network_transaction.h
+++ b/net/ftp/ftp_network_transaction.h
@@ -57,6 +57,7 @@ class FtpNetworkTransaction : public FtpTransaction {
COMMAND_SIZE,
COMMAND_RETR,
COMMAND_CWD,
+ COMMAND_MLSD,
COMMAND_LIST,
COMMAND_MDTM,
COMMAND_QUIT
@@ -151,6 +152,8 @@ class FtpNetworkTransaction : public FtpTransaction {
int ProcessResponseSIZE(const FtpCtrlResponse& response);
int DoCtrlWriteCWD();
int ProcessResponseCWD(const FtpCtrlResponse& response);
+ int DoCtrlWriteMLSD();
+ int ProcessResponseMLSD(const FtpCtrlResponse& response);
int DoCtrlWriteLIST();
int ProcessResponseLIST(const FtpCtrlResponse& response);
int DoCtrlWriteMDTM();
@@ -240,6 +243,7 @@ class FtpNetworkTransaction : public FtpTransaction {
STATE_CTRL_WRITE_RETR,
STATE_CTRL_WRITE_SIZE,
STATE_CTRL_WRITE_CWD,
+ STATE_CTRL_WRITE_MLSD,
STATE_CTRL_WRITE_LIST,
STATE_CTRL_WRITE_MDTM,
STATE_CTRL_WRITE_QUIT,