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

Side by Side Diff: net/ftp/ftp_network_transaction_unittest.cc

Issue 2985004: Clean up FTP code a bit: (Closed)
Patch Set: Created 10 years, 5 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/ftp/ftp_network_transaction.cc ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "net/ftp/ftp_network_transaction.h" 5 #include "net/ftp/ftp_network_transaction.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 18 matching lines...) Expand all
29 29
30 class FtpSocketDataProvider : public DynamicSocketDataProvider { 30 class FtpSocketDataProvider : public DynamicSocketDataProvider {
31 public: 31 public:
32 enum State { 32 enum State {
33 NONE, 33 NONE,
34 PRE_USER, 34 PRE_USER,
35 PRE_PASSWD, 35 PRE_PASSWD,
36 PRE_SYST, 36 PRE_SYST,
37 PRE_PWD, 37 PRE_PWD,
38 PRE_TYPE, 38 PRE_TYPE,
39 PRE_SIZE,
39 PRE_EPSV, 40 PRE_EPSV,
40 PRE_PASV, 41 PRE_PASV,
41 PRE_SIZE,
42 PRE_MLSD, 42 PRE_MLSD,
43 PRE_LIST, 43 PRE_LIST,
44 PRE_RETR, 44 PRE_RETR,
45 PRE_CWD, 45 PRE_CWD,
46 PRE_QUIT, 46 PRE_QUIT,
47 PRE_NOPASV, 47 PRE_NOPASV,
48 QUIT 48 QUIT
49 }; 49 };
50 50
51 FtpSocketDataProvider() 51 FtpSocketDataProvider()
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 FtpSocketDataProviderFileDownload ctrl_socket; 1310 FtpSocketDataProviderFileDownload ctrl_socket;
1311 TransactionFailHelper(&ctrl_socket, 1311 TransactionFailHelper(&ctrl_socket,
1312 "ftp://host/file", 1312 "ftp://host/file",
1313 FtpSocketDataProvider::PRE_PWD, 1313 FtpSocketDataProvider::PRE_PWD,
1314 FtpSocketDataProvider::PRE_TYPE, 1314 FtpSocketDataProvider::PRE_TYPE,
1315 "257 \"\"\r\n", 1315 "257 \"\"\r\n",
1316 OK); 1316 OK);
1317 } 1317 }
1318 1318
1319 } // namespace net 1319 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698