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); |
}; |
}; |