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

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

Issue 440653003: [fsp] Add support for aborting running operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed DCHECKs. Created 6 years, 4 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 ec87d20b922973779fe4f8fb3d871bd700e8409a..af73a42c69f3e581d5a2bd7a9df14a926d738212 100644
--- a/chrome/common/extensions/api/file_system_provider.idl
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -22,7 +22,6 @@ namespace fileSystemProvider {
NOT_A_DIRECTORY,
INVALID_OPERATION,
SECURITY,
- ABORT,
NOT_A_FILE,
NOT_EMPTY,
INVALID_URL,
@@ -167,6 +166,13 @@ namespace fileSystemProvider {
ArrayBuffer data;
};
+ // Options for the <code>onAbortRequested()</code> event.
+ dictionary AbortRequestedOptions {
+ DOMString fileSystemId;
+ long requestId;
+ long operationRequestId;
+ };
+
// Callback to receive the result of mount() function.
callback MountCallback = void([nodoc, instanceOf=DOMError] object error);
@@ -328,6 +334,18 @@ namespace fileSystemProvider {
WriteFileRequestedOptions options,
ProviderSuccessCallback successCallback,
ProviderErrorCallback errorCallback);
+
+ // Raised when aborting an operation with <code>operationRequestId</code>
+ // is requested. The operation executed with <code>operationRequestId</code>
+ // should be immediately stopped and <code>successCallback</code> of this
+ // abort request executed. If aborting fails, then <code>errorCallback
+ // </code> must be called. Note, that callbacks of the aborted operation
+ // should not be called, as they will be ignored. Despite calling <code>
+ // errorCallback</code>, the request may be forcibly aborted.
+ [maxListeners=1, nodoc] static void onAbortRequested(
+ AbortRequestedOptions 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