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

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

Issue 624903002: [fsp] Group arguments for mounting into a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a bug. Created 6 years, 2 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/provided_file_system_info.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h
index b863ed7d6edf4fbb41c4f70c7b61a2296243a628..e014673377d3f98caa115c40ef40e8a77ad83413 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h
@@ -12,15 +12,28 @@
namespace chromeos {
namespace file_system_provider {
+// Options for creating the provided file system info.
+struct MountOptions {
+ MountOptions();
+
+ // Only mandatory fields.
+ MountOptions(const std::string& file_system_id,
+ const std::string& display_name);
+
+ std::string extension_id;
+ std::string file_system_id;
+ std::string display_name;
+ bool writable;
+ bool supports_notify_tag;
+};
+
// Contains information about the provided file system instance.
class ProvidedFileSystemInfo {
public:
ProvidedFileSystemInfo();
+
ProvidedFileSystemInfo(const std::string& extension_id,
- const std::string& file_system_id,
- const std::string& display_name,
- bool writable,
- bool supports_notify_tag,
+ const MountOptions& mount_options,
const base::FilePath& mount_path);
~ProvidedFileSystemInfo();

Powered by Google App Engine
This is Rietveld 408576698