OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "net/base/net_api.h" | 12 #include "net/base/net_export.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class Time; | 15 class Time; |
16 } | 16 } |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 class NET_TEST FtpUtil { | 20 class NET_EXPORT_PRIVATE FtpUtil { |
21 public: | 21 public: |
22 // Converts Unix file path to VMS path (must be a file, and not a directory). | 22 // Converts Unix file path to VMS path (must be a file, and not a directory). |
23 static std::string UnixFilePathToVMS(const std::string& unix_path); | 23 static std::string UnixFilePathToVMS(const std::string& unix_path); |
24 | 24 |
25 // Converts Unix directory path to VMS path (must be a directory). | 25 // Converts Unix directory path to VMS path (must be a directory). |
26 static std::string UnixDirectoryPathToVMS(const std::string& unix_path); | 26 static std::string UnixDirectoryPathToVMS(const std::string& unix_path); |
27 | 27 |
28 // Converts VMS path to Unix-style path. | 28 // Converts VMS path to Unix-style path. |
29 static std::string VMSPathToUnix(const std::string& vms_path); | 29 static std::string VMSPathToUnix(const std::string& vms_path); |
30 | 30 |
(...skipping 13 matching lines...) Expand all Loading... |
44 base::Time* result); | 44 base::Time* result); |
45 | 45 |
46 // Skips |columns| columns from |text| (whitespace-delimited), and returns the | 46 // Skips |columns| columns from |text| (whitespace-delimited), and returns the |
47 // remaining part, without leading/trailing whitespace. | 47 // remaining part, without leading/trailing whitespace. |
48 static string16 GetStringPartAfterColumns(const string16& text, int columns); | 48 static string16 GetStringPartAfterColumns(const string16& text, int columns); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace net | 51 } // namespace net |
52 | 52 |
53 #endif // NET_FTP_FTP_UTIL_H_ | 53 #endif // NET_FTP_FTP_UTIL_H_ |
OLD | NEW |