Chromium Code Reviews| Index: webkit/fileapi/mount_points.h |
| diff --git a/webkit/fileapi/mount_points.h b/webkit/fileapi/mount_points.h |
| index 0cfb57b927682ea6f028fb80e44285def988c650..9a631b7e631a12638ab1f0e9d3cf264a3f0202fb 100644 |
| --- a/webkit/fileapi/mount_points.h |
| +++ b/webkit/fileapi/mount_points.h |
| @@ -16,6 +16,10 @@ |
| class GURL; |
| namespace fileapi { |
| +class FileSystemURL; |
| +} |
| + |
| +namespace fileapi { |
| // Represents a set of mount points for File API. |
| class WEBKIT_STORAGE_EXPORT MountPoints { |
| @@ -46,6 +50,23 @@ class WEBKIT_STORAGE_EXPORT MountPoints { |
| // TODO(kinuko): Probably this should be rather named RevokeMountPoint. |
| virtual bool RevokeFileSystem(const std::string& mount_name) = 0; |
| + // Returns true if the MountPoints implementation handles filesystems with |
| + // the given mount type. |
| + virtual bool HandlesFileSystemMountType(const FileSystemType& type) const = 0; |
|
kinuko
2013/01/23 03:43:53
nit: it doesn't need to be const-ref
|
| + |
| + // Same as CreateCrackedFileSystemURL, but cracks FileSystemURL created |
| + // from |url|. |
| + virtual FileSystemURL CrackURL(const GURL& url) const = 0; |
| + |
| + // Creates a FileSystemURL with the given origin, type and path and tries to |
| + // crack it a a part of one of the registered mount points. |
| + // If the the URL is not valid or does not belong to any of the mount points |
| + // registered in this context, returns empty, invalid FileSystemURL. |
| + virtual FileSystemURL CreateCrackedFileSystemURL( |
| + const GURL& origin, |
| + fileapi::FileSystemType type, |
| + const FilePath& path) const = 0; |
| + |
| // Returns the mount point root path registered for a given |mount_name|. |
| // Returns false if the given |mount_name| is not valid. |
| virtual bool GetRegisteredPath(const std::string& mount_name, |