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

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

Issue 384303002: [fsp] Add support for copying files within a provided file system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/common/extensions/api/file_system_provider.idl
diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl
index 7d4fd0184dcd68e70f12df79e13c52153ae6f6c7..1656e5ac4d776e09a88b9bc74353d9925c1ce354 100644
--- a/chrome/common/extensions/api/file_system_provider.idl
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -132,6 +132,14 @@ namespace fileSystemProvider {
DOMString filePath;
};
+ // Options for the <code>onCopyEntryRequested()</code> event.
+ dictionary CopyEntryRequestedOptions {
+ DOMString fileSystemId;
+ long requestId;
+ DOMString sourcePath;
+ DOMString targetPath;
+ };
+
// Callback to receive the result of mount() function.
callback MountCallback = void([nodoc, instanceOf=DOMError] object error);
@@ -265,6 +273,13 @@ namespace fileSystemProvider {
CreateFileRequestedOptions options,
ProviderSuccessCallback successCallback,
ProviderErrorCallback errorCallback);
+
+ // Raised when copying an entry (recursively if a directory) is requested.
+ // If an error occurs, then <code>errorCallback</code> must be called.
+ [maxListeners=1, nodoc] static void onCopyEntryRequested(
+ CopyEntryRequestedOptions options,
+ ProviderSuccessCallback successCallback,
+ ProviderErrorCallback errorCallback);
};
};

Powered by Google App Engine
This is Rietveld 408576698