| Index: chrome/browser/chromeos/drive/file_system_util.h
|
| diff --git a/chrome/browser/chromeos/drive/file_system_util.h b/chrome/browser/chromeos/drive/file_system_util.h
|
| index 5e91b3c2c618b231be37f1fbb2136e9c8eacfdd5..370c7524f087665feacc54e1fb6e81aea9528623 100644
|
| --- a/chrome/browser/chromeos/drive/file_system_util.h
|
| +++ b/chrome/browser/chromeos/drive/file_system_util.h
|
| @@ -29,6 +29,18 @@ namespace util {
|
| // Returns the Drive mount point path, which looks like "/special/drive-<hash>".
|
| base::FilePath GetDriveMountPointPath(Profile* profile);
|
|
|
| +// Returns the Drive mount point path, which looks like
|
| +// "/special/drive-<username_hash>", when provided with the |user_id_hash|.
|
| +base::FilePath GetDriveMountPointPathForUserIdHash(std::string user_id_hash);
|
| +
|
| +// Returns true if the given path is under the Drive mount point.
|
| +bool IsUnderDriveMountPoint(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: ExtractDrivePath("/special/drive-xxx/foo.txt") => "drive/foo.txt"
|
| +base::FilePath ExtractDrivePath(const base::FilePath& path);
|
| +
|
| // Returns the FileSystem for the |profile|. If not available (not mounted
|
| // or disabled), returns NULL.
|
| FileSystemInterface* GetFileSystemByProfile(Profile* profile);
|
|
|