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

Unified Diff: chrome/browser/chromeos/file_system_provider/service.h

Issue 372163006: [fsp] Add an option for mounting in R/W mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 years, 5 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/chromeos/file_system_provider/service.h
diff --git a/chrome/browser/chromeos/file_system_provider/service.h b/chrome/browser/chromeos/file_system_provider/service.h
index 5c7f8c042d31131396b4a517b6b35a184f3db5d1..eec8ceec9b20c60cf5d63bc3138f76d4445ef09a 100644
--- a/chrome/browser/chromeos/file_system_provider/service.h
+++ b/chrome/browser/chromeos/file_system_provider/service.h
@@ -39,6 +39,7 @@ namespace file_system_provider {
// Key names for preferences.
extern const char kPrefKeyFileSystemId[];
extern const char kPrefKeyDisplayName[];
+extern const char kPrefKeyWritable[];
class ProvidedFileSystemFactoryInterface;
class ProvidedFileSystemInfo;
@@ -71,11 +72,14 @@ class Service : public KeyedService,
void SetFileSystemFactoryForTesting(
const FileSystemFactoryCallback& factory_callback);
- // Mounts a file system provided by an extension with the |extension_id|.
- // For success, returns true, otherwise false.
+ // Mounts a file system provided by an extension with the |extension_id|. If
+ // |writable| is set to true, then the file system is mounted in a R/W mode.
+ // Otherwise, only read-only operations are supported. For success, returns
+ // true, otherwise false.
bool MountFileSystem(const std::string& extension_id,
const std::string& file_system_id,
- const std::string& display_name);
+ const std::string& display_name,
+ bool writable);
// Unmounts a file system with the specified |file_system_id| for the
// |extension_id|. For success returns true, otherwise false.

Powered by Google App Engine
This is Rietveld 408576698