| Index: chrome/browser/chromeos/drive/drive_file_system_util.h
|
| diff --git a/chrome/browser/chromeos/drive/drive_file_system_util.h b/chrome/browser/chromeos/drive/drive_file_system_util.h
|
| index ddb1b603abc2415e5c83d3c88e701c22c3689d6d..e95711ed544aebb052822acc053baf39339ddfe8 100644
|
| --- a/chrome/browser/chromeos/drive/drive_file_system_util.h
|
| +++ b/chrome/browser/chromeos/drive/drive_file_system_util.h
|
| @@ -19,6 +19,10 @@ namespace base {
|
| class FilePath;
|
| }
|
|
|
| +namespace fileapi {
|
| +class FileSystemURL;
|
| +}
|
| +
|
| namespace drive {
|
|
|
| class PlatformFileInfoProto;
|
| @@ -112,9 +116,14 @@ base::FilePath ConvertToMyDriveNamespace(const base::FilePath& path);
|
|
|
| // Extracts the Drive path from the given path located under the Drive mount
|
| // point. Returns an empty path if |path| is not under the Drive mount point.
|
| -// Examples: ExtractGDatPath("/special/drive/foo.txt") => "drive/foo.txt"
|
| +// Examples: ExtractDrivePath("/special/drive/foo.txt") => "drive/foo.txt"
|
| base::FilePath ExtractDrivePath(const base::FilePath& path);
|
|
|
| +// Extracts the Drive path (e.g., "drive/foo.txt") from the filesystem URL.
|
| +// Returns an empty path if |url| does not point under Drive mount point.
|
| +base::FilePath ExtractDrivePathFromFileSystemUrl(
|
| + const fileapi::FileSystemURL& url);
|
| +
|
| // Escapes a file name in Drive cache.
|
| // Replaces percent ('%'), period ('.') and slash ('/') with %XX (hex)
|
| std::string EscapeCacheFileName(const std::string& filename);
|
|
|