summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_util.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 09:58:32 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 09:58:32 +0000
commita115b010733df8d53f4f6cc0f66cb90b7a8069dc (patch)
treee2aed2c2980b7061e6b36b1967f19edd28a07678 /net/ftp/ftp_util.h
parent76ae486cba7db7b2adada0716ccbbb846371363d (diff)
downloadchromium_src-a115b010733df8d53f4f6cc0f66cb90b7a8069dc.zip
chromium_src-a115b010733df8d53f4f6cc0f66cb90b7a8069dc.tar.gz
chromium_src-a115b010733df8d53f4f6cc0f66cb90b7a8069dc.tar.bz2
Split FTP LIST parsing code into individual files for each listing style.
This turns out to be much better code organisation strategy. We're going to have even more parsers. TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/465035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp/ftp_util.h')
-rw-r--r--net/ftp/ftp_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ftp/ftp_util.h b/net/ftp/ftp_util.h
index c71b919..2a73c68 100644
--- a/net/ftp/ftp_util.h
+++ b/net/ftp/ftp_util.h
@@ -7,6 +7,8 @@
#include <string>
+#include "base/string16.h"
+
namespace net {
class FtpUtil {
@@ -19,6 +21,10 @@ class FtpUtil {
// Convert VMS path to Unix-style path.
static std::string VMSPathToUnix(const std::string& vms_path);
+
+ // Convert three-letter month abbreviation (like Nov) to its number (in range
+ // 1-12).
+ static bool ThreeLetterMonthToNumber(const string16& text, int* number);
};
} // namespace net