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

Unified Diff: chrome/common/extensions/api/file_manager_private.idl

Issue 1055183003: Add a data source field for volumes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a typo. Created 5 years, 8 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/common/extensions/api/file_manager_private.idl
diff --git a/chrome/common/extensions/api/file_manager_private.idl b/chrome/common/extensions/api/file_manager_private.idl
index 398c8f8143551a6db44e4087858ae5d99a6d3ab9..a7b202848b94c0235a1ff9a4d5d97822d44b7161 100644
--- a/chrome/common/extensions/api/file_manager_private.idl
+++ b/chrome/common/extensions/api/file_manager_private.idl
@@ -173,6 +173,20 @@ enum EntryTagVisibility {
public
};
+// Source of the volume data.
+enum VolumeSource {
+ // Represents a mounted file. In most cases, simply an archive.
+ file,
+
+ // Representing a device, eg. an MTP device. Also, used for Downloads as it's
+ // containing files stored on the Chrome OS device.
+ device,
+
+ // Used for volumes which contain files on a remote machine, eg. Drive or
+ // cloud services implemented via the File System Provider API.
+ network
+};
+
// A file task represents an action that the file manager can perform over the
// currently selected files. See
// chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
@@ -280,12 +294,15 @@ dictionary VolumeMetadata {
// ID of the disk volume.
DOMString volumeId;
- // Id the provided file system (for proviided file systems).
+ // Id the provided file system (for provided file systems).
DOMString? fileSystemId;
// Extension providing this volume (for provided file systems).
DOMString? extensionId;
+ // Source of the volume data.
+ VolumeSource? volumeSource;
+
// Label of the volume (if available).
DOMString? volumeLabel;

Powered by Google App Engine
This is Rietveld 408576698