Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: webkit/fileapi/mount_points.h

Issue 12258021: Fix filesystem API file_handlers to work for drive on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« webkit/fileapi/file_system_url.h ('K') | « webkit/fileapi/isolated_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/mount_points.h
diff --git a/webkit/fileapi/mount_points.h b/webkit/fileapi/mount_points.h
index 7fcc2314c8462d72112a09904a27260b37514a8f..bcb2995bad60c0c7a2dc87e7d336825d6a32e50b 100644
--- a/webkit/fileapi/mount_points.h
+++ b/webkit/fileapi/mount_points.h
@@ -88,6 +88,19 @@ class WEBKIT_STORAGE_EXPORT MountPoints {
FileSystemType* type,
base::FilePath* path) const = 0;
+ // 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 or MountPoints implementation does not
+ // support conversion from full to virtual path).
+ //
+ // Returned virtual_path will have normalized path separators.
+ virtual bool GetVirtualPath(const base::FilePath& full_path,
+ base::FilePath* virtual_path) const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(MountPoints);
};
« webkit/fileapi/file_system_url.h ('K') | « webkit/fileapi/isolated_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698