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

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

Issue 1137383002: Show the eject button only for removabled and file handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 7 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 795577ce3c72814c833b8f8daa8acfe030b7ade1..f2b51e6e8d4a698a5448aeeb673b3b7d2307040b 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
@@ -8,6 +8,7 @@
#include <string>
#include "base/files/file_path.h"
+#include "chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h"
namespace chromeos {
namespace file_system_provider {
@@ -34,7 +35,9 @@ class ProvidedFileSystemInfo {
ProvidedFileSystemInfo(const std::string& extension_id,
const MountOptions& mount_options,
- const base::FilePath& mount_path);
+ const base::FilePath& mount_path,
+ bool configurable,
+ extensions::FileSystemProviderSource source);
~ProvidedFileSystemInfo();
@@ -45,6 +48,8 @@ class ProvidedFileSystemInfo {
bool supports_notify_tag() const { return supports_notify_tag_; }
int opened_files_limit() const { return opened_files_limit_; }
const base::FilePath& mount_path() const { return mount_path_; }
+ const bool configurable() const { return configurable_; }
+ extensions::FileSystemProviderSource source() const { return source_; }
private:
// ID of the extension providing this file system.
@@ -67,6 +72,12 @@ class ProvidedFileSystemInfo {
// Mount path of the underlying file system.
base::FilePath mount_path_;
+
+ // Whether the file system is configurable.
+ bool configurable_;
+
+ // Source of the file system's data.
+ extensions::FileSystemProviderSource source_;
};
} // namespace file_system_provider

Powered by Google App Engine
This is Rietveld 408576698