public:
virtual ~MediaFileSystemContext() {}
- // Register a new media file system for |path| as |fs_name|.
- virtual bool RegisterFileSystem(const std::string& device_id,
- const std::string& fs_name,
- const base::FilePath& path) = 0;
-
- // Revoke the passed |fs_name|.
- virtual void RevokeFileSystem(const std::string& fs_name) = 0;
-
- // Return the mount point root for the given |fs_name|. Returns an empty path
- // if |fs_name| is not valid.
- virtual base::FilePath GetRegisteredPath(
- const std::string& fs_name) const = 0;
+ // Register a new media file system for |path| and return the corresponding
+ // filesystem ID.
+ virtual std::string RegisterFileSystem(
+ const std::string& device_id, const base::FilePath& path) = 0;
+
+ // Revoke the passed |fsid|.
+ virtual void RevokeFileSystem(const std::string& fsid) = 0;
};
#endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_