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

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

Issue 465035: Split FTP LIST parsing code into individual files for each listing style. (Closed)
Patch Set: fix Created 11 years 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_directory_listing_parsers_unittest.cc ('k') | net/ftp/ftp_util.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) 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 #ifndef NET_FTP_FTP_UTIL_H_ 5 #ifndef NET_FTP_FTP_UTIL_H_
6 #define NET_FTP_FTP_UTIL_H_ 6 #define NET_FTP_FTP_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h"
11
10 namespace net { 12 namespace net {
11 13
12 class FtpUtil { 14 class FtpUtil {
13 public: 15 public:
14 // Convert Unix file path to VMS path (must be a file, and not a directory). 16 // Convert Unix file path to VMS path (must be a file, and not a directory).
15 static std::string UnixFilePathToVMS(const std::string& unix_path); 17 static std::string UnixFilePathToVMS(const std::string& unix_path);
16 18
17 // Convert Unix directory path to VMS path (must be a directory). 19 // Convert Unix directory path to VMS path (must be a directory).
18 static std::string UnixDirectoryPathToVMS(const std::string& unix_path); 20 static std::string UnixDirectoryPathToVMS(const std::string& unix_path);
19 21
20 // Convert VMS path to Unix-style path. 22 // Convert VMS path to Unix-style path.
21 static std::string VMSPathToUnix(const std::string& vms_path); 23 static std::string VMSPathToUnix(const std::string& vms_path);
24
25 // Convert three-letter month abbreviation (like Nov) to its number (in range
26 // 1-12).
27 static bool ThreeLetterMonthToNumber(const string16& text, int* number);
22 }; 28 };
23 29
24 } // namespace net 30 } // namespace net
25 31
26 #endif // NET_FTP_FTP_UTIL_H_ 32 #endif // NET_FTP_FTP_UTIL_H_
OLDNEW
« no previous file with comments | « net/ftp/ftp_directory_listing_parsers_unittest.cc ('k') | net/ftp/ftp_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698