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 75eddda1794e6e27663125f27ada1a124a058e8d..9334f37bb5e315a529824f2300dff98026c3f3a4 100644 |
--- a/chrome/common/extensions/api/file_system_provider.idl |
+++ b/chrome/common/extensions/api/file_system_provider.idl |
@@ -126,6 +126,13 @@ namespace fileSystemProvider { |
boolean recursive; |
}; |
+ // Options for the <code>onCreateFileRequested()</code> event. |
+ dictionary CreateFileRequestedOptions { |
+ DOMString fileSystemId; |
+ long requestId; |
+ DOMString filePath; |
+ }; |
+ |
// Callback to receive the result of mount() function. |
callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
@@ -251,6 +258,14 @@ namespace fileSystemProvider { |
DeleteEntryRequestedOptions options, |
ProviderSuccessCallback successCallback, |
ProviderErrorCallback errorCallback); |
+ |
+ // Raised when creating a file is requested. If the file already exists, |
+ // then <code>errorCallback</code> must be called with the <code>EXISTS |
+ // </code> error code. |
+ [maxListeners=1, nodoc] static void onCreateFileRequested( |
+ CreateFileRequestedOptions options, |
+ ProviderSuccessCallback successCallback, |
+ ProviderErrorCallback errorCallback); |
}; |
}; |