Index: webkit/fileapi/file_system_util.h |
diff --git a/webkit/fileapi/file_system_util.h b/webkit/fileapi/file_system_util.h |
index 247d5ce30c24127ddcafe8d548725f0ad1b13cf2..eac3847067d301222e62a47419dd49db2a75ddaa 100644 |
--- a/webkit/fileapi/file_system_util.h |
+++ b/webkit/fileapi/file_system_util.h |
@@ -92,6 +92,16 @@ GURL GetOriginURLFromIdentifier(const std::string& origin_identifier); |
// Returns an empty string if the |type| is invalid. |
std::string GetFileSystemTypeString(FileSystemType type); |
+// Encodes |file_path| to a string. |
+// Following conditions should be held: |
+// - StringToFilePath(FilePathToString(path)) == path |
+// - StringToFilePath(FilePathToString(path) + "/" + "SubDirectory") == |
+// path.AppendASCII("SubDirectory"); |
kinuko
2012/03/26 08:43:45
Do we want to mention the corresponding routines i
tzik
2012/03/26 11:27:38
Done.
|
+std::string FilePathToString(const FilePath& file_path); |
+ |
+// Decode a file path from |file_path_string|. |
+FilePath StringToFilePath(const std::string& file_path_string); |
+ |
} // namespace fileapi |
#endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ |