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

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

Issue 375543002: [fsp] Add support for deleting entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased + cleaned up. 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 3ed74e79b95f9784920c485ba661dd6b2986f970..d8118cbddf2ce9fbffd136cae30868e4f929c85b 100644
--- a/chrome/common/extensions/api/file_system_provider.idl
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -117,6 +117,14 @@ namespace fileSystemProvider {
boolean recursive;
};
+ // Options for the <code>onDeleteEntryRequested()</code> event.
+ dictionary DeleteEntryRequestedOptions {
+ DOMString fileSystemId;
+ long requestId;
+ DOMString entryPath;
+ boolean recursive;
+ };
+
// Callback to receive the result of mount() function.
callback MountCallback = void([nodoc, instanceOf=DOMError] object error);
@@ -227,13 +235,21 @@ namespace fileSystemProvider {
ProviderErrorCallback errorCallback);
// Raised when creating a directory is requested. If <code>exclusive</code>
- // is set to true, then the operation should fail if the target directory
+ // is set to true, then the operation must fail if the target directory
// already exists. If <code>recursive</code> is true, then all of the
- // missing directories on the directory path should be created.
+ // missing directories on the directory path must be created.
[maxListeners=1, nodoc] static void onCreateDirectoryRequested(
CreateDirectoryRequestedOptions options,
ProviderSuccessCallback successCallback,
ProviderErrorCallback errorCallback);
+
+ // Raised when deleting an entry is requested. If <code>recursive</code> is
+ // true, and the entry is a directory, then all of the entries inside
+ // must be recursively deleted as well.
+ [maxListeners=1, nodoc] static void onDeleteEntryRequested(
+ DeleteEntryRequestedOptions options,
+ ProviderSuccessCallback successCallback,
+ ProviderErrorCallback errorCallback);
};
};
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698