summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/common/extensions/api/file_manager_private.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/extensions/api/file_manager_private.idl')
-rw-r--r--chromium/chrome/common/extensions/api/file_manager_private.idl79
1 files changed, 4 insertions, 75 deletions
diff --git a/chromium/chrome/common/extensions/api/file_manager_private.idl b/chromium/chrome/common/extensions/api/file_manager_private.idl
index 04ed11c167a..a83fb65cd43 100644
--- a/chromium/chrome/common/extensions/api/file_manager_private.idl
+++ b/chromium/chrome/common/extensions/api/file_manager_private.idl
@@ -194,12 +194,6 @@ enum EntryPropertyName {
isArbitrarySyncFolder
};
-// Entry property visibility for setEntryTag();
-enum EntryTagVisibility {
- private,
- public
-};
-
// Source of the volume data.
enum Source {
file,
@@ -232,8 +226,6 @@ enum SourceRestriction {
enum CrostiniEventType {
enable,
disable,
- root_access_allow,
- root_access_disallow,
share,
unshare
};
@@ -734,16 +726,10 @@ callback GetEntryPropertiesCallback =
// |sourcePath| Source path of the mount.
callback AddMountCallback = void(DOMString sourcePath);
-callback MarkCacheAsMountedCallback = void();
-
// |volumeMetadataList| The list of VolumeMetadata representing mounted volumes.
callback GetVolumeMetadataListCallback =
void(VolumeMetadata[] volumeMetadataList);
-// |fileTransferCancelStatuses| The list of FileTransferCancelStatus.
-callback CancelFileTransfersCallback =
- void(FileTransferCancelStatus[] fileTransferCancelStatuses);
-
// |copyId| ID of the copy task. Can be used to identify the progress, and to
// cancel the task.
callback StartCopyCallback = void(long copyId);
@@ -766,9 +752,10 @@ callback SearchDriveMetadataCallback =
callback SearchFilesCallback = void([instanceOf=Entry] object[] entries);
-// |urls| The map of hash and array of FileEntry's URL. The array can be empty
-// if the corresponding file is not found.
-callback SearchFilesByHashesCallback = void(object urls);
+// |paths| A map of hash to array of drive paths. The array can be empty
+// if the corresponding file is not found. However, the array will only
+// contain at most one path per hash.
+callback SearchFilesByHashesCallback = void(object paths);
callback ZipSelectionCallback = void(optional boolean success);
@@ -778,9 +765,6 @@ callback GetDriveConnectionStateCallback = void(DriveConnectionState result);
callback ValidatePathNameLengthCallback = void(boolean result);
// |accessToken| OAuth2 access token, or an empty string if failed to fetch.
-callback RequestAccessTokenCallback = void(DOMString accessToken);
-
-// |accessToken| OAuth2 access token, or an empty string if failed to fetch.
callback RequestWebStoreAccessTokenCallback = void(DOMString accessToken);
// |url| Result url.
@@ -951,20 +935,6 @@ interface Functions {
boolean pin,
SimpleCallback callback);
- // If |entry| is a Drive file, ensures the file is downloaded to the cache.
- // Otherwise, finishes immediately in success. For example, when the file is
- // under Downloads, MTP, removeable media, or provided by extensions for
- // other cloud storage services than Google Drive, this does nothing.
- // This is a workaround to avoid intermittent and duplicated downloading of
- // a Drive file by current implementation of Drive integration when an
- // extension reads a file sequentially but intermittently.
- // |entry| A regular file entry to be read.
- // |callback| Callback called after having the file in cache.
- // $(ref:runtime.lastError) will be set if there was an error.
- [nocompile]
- static void ensureFileDownloaded([instanceof=Entry] object entry,
- SimpleCallback callback);
-
// Resolves entries in the isolated file system and returns corresponding
// entries in the external file system mounted to Chrome OS file manager
// backend. If resolving entry fails, the entry will be just ignored and the
@@ -984,27 +954,10 @@ interface Functions {
// |volumeId| An ID of the volume.
static void removeMount(DOMString volumeId);
- // Marks a cache file of Drive as mounted or unmounted.
- // Does nothing if the file is not under Drive directory.
- // |sourcePath| Mounted source file. Relative file path within external file
- // system.
- // |isMounted| Mark as mounted if true. Mark as unmounted otherwise.
- // |callback| Completion callback. $(ref:runtime.lastError) will be set if
- // there was an error.
- static void markCacheAsMounted(DOMString sourcePath, boolean isMounted,
- MarkCacheAsMountedCallback callback);
-
// Get the list of mounted volumes.
// |callback|
static void getVolumeMetadataList(GetVolumeMetadataListCallback callback);
- // Cancels ongoing file transfers for selected files.
- // |entries| Array of files for which ongoing transfer should be canceled.
- // |callback| Completion callback of the cancel.
- [nocompile]
- static void cancelFileTransfers([instanceof=Entry] object[] entries,
- SimpleCallback callback);
-
// Starts to copy an entry. If the source is a directory, the copy is done
// recursively.
// |entry| Entry of the source entry to be copied.
@@ -1061,7 +1014,6 @@ interface Functions {
SearchDriveMetadataCallback callback);
// Search files in the volume having |volumeId| by using |hashList|.
- // sub-directories) the given |targetDirectoryUrl|.
static void searchFilesByHashes(DOMString volumeId,
DOMString[] hashList,
SearchFilesByHashesCallback callback);
@@ -1101,13 +1053,6 @@ interface Functions {
// |operation| Zooming mode.
static void zoom(ZoomOperationType operation);
- // Requests a Drive API OAuth2 access token.
- // |refresh| Whether the token should be refetched instead of using the cached
- // one.
- // |callback|
- static void requestAccessToken(boolean refresh,
- RequestAccessTokenCallback callback);
-
// Requests a Webstore API OAuth2 access token.
// |callback|
static void requestWebStoreAccessToken(
@@ -1120,14 +1065,6 @@ interface Functions {
static void getDownloadUrl([instanceof=Entry] object entry,
GetUrlCallback callback);
- // Requests to share drive files.
- // |entry| Entry to be shared.
- // |shareType| Type of access that is getting granted.
- [nocompile]
- static void requestDriveShare([instanceof=Entry] object entry,
- DriveShareType shareType,
- SimpleCallback callback);
-
// Obtains a list of profiles that are logged-in.
static void getProfiles(GetProfilesCallback callback);
@@ -1146,14 +1083,6 @@ interface Functions {
static void computeChecksum([instanceof=Entry] object entry,
ComputeChecksumCallback callback);
- // Sets a tag on a file or a directory. Only Drive files are supported.
- [nocompile]
- static void setEntryTag([instanceof=Entry] object entry,
- EntryTagVisibility visibility,
- DOMString key,
- DOMString value,
- SimpleCallback callback);
-
// Returns if Piex loader is enabled.
static void isPiexLoaderEnabled(BooleanCallback callback);