Index: webkit/fileapi/external_mount_points.h |
diff --git a/webkit/fileapi/external_mount_points.h b/webkit/fileapi/external_mount_points.h |
index a2660c24536d118b643e29f8baadc9fadeb786fb..ab0fea2afc7852ae51d70a7bc04993da1822af47 100644 |
--- a/webkit/fileapi/external_mount_points.h |
+++ b/webkit/fileapi/external_mount_points.h |
@@ -85,6 +85,9 @@ class WEBKIT_STORAGE_EXPORT ExternalMountPoints |
const GURL& origin, |
FileSystemType type, |
const base::FilePath& path) const OVERRIDE; |
+ virtual bool GetVirtualPath(const base::FilePath& full_path, |
+ base::FilePath* virtual_path) const OVERRIDE; |
+ |
// Retrieves the remote file system proxy for the registered file system. |
// Returns NULL if there is no file system with the given name, or if the file |
@@ -95,18 +98,6 @@ class WEBKIT_STORAGE_EXPORT ExternalMountPoints |
// Returns a list of registered MountPointInfos (of <mount_name, path>). |
void AddMountPointInfosTo(std::vector<MountPointInfo>* mount_points) const; |
- // Converts a path on a registered file system to virtual path relative to the |
- // file system root. E.g. if 'Downloads' file system is mapped to |
- // '/usr/local/home/Downloads', and |absolute| path is set to |
- // '/usr/local/home/Downloads/foo', the method will set |virtual_path| to |
- // 'Downloads/foo'. |
- // Returns false if the path cannot be resolved (e.g. if the path is not |
- // part of any registered filesystem). |
- // |
- // Returned virtual_path will have normalized path separators. |
- bool GetVirtualPath(const base::FilePath& absolute_path, |
- base::FilePath* virtual_path); |
- |
// Returns the virtual root path that looks like /<mount_name>. |
base::FilePath CreateVirtualRootPath(const std::string& mount_name) const; |