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

Unified Diff: chrome/browser/media_galleries/media_file_system_context.h

Issue 185393012: Change media galleries to external file system type to add toURL support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
Index: chrome/browser/media_galleries/media_file_system_context.h
diff --git a/chrome/browser/media_galleries/media_file_system_context.h b/chrome/browser/media_galleries/media_file_system_context.h
index 0ecafd63f7d5fc4d5bfbc23d1ce0cb1949294578..a430b31bd9df9ffa4a76819569dc5cb61373ebbf 100644
--- a/chrome/browser/media_galleries/media_file_system_context.h
+++ b/chrome/browser/media_galleries/media_file_system_context.h
@@ -19,13 +19,18 @@ class MediaFileSystemContext {
public:
virtual ~MediaFileSystemContext() {}
- // 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;
+ // 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;
};
#endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698