| 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 471c6a1ff7d44bb0ca8e694a0680fce31f1c92c5..c08a884751c23d27f2353b529b76c2c7210c091b 100644
|
| --- a/chrome/common/extensions/api/file_system_provider.idl
|
| +++ b/chrome/common/extensions/api/file_system_provider.idl
|
| @@ -109,6 +109,15 @@ namespace fileSystemProvider {
|
| double length;
|
| };
|
|
|
| + // Options for the <code>onCreateDirectoryRequested()</code> event.
|
| + dictionary CreateDirectoryRequestedOptions {
|
| + DOMString fileSystemId;
|
| + long requestId;
|
| + DOMString directoryPath;
|
| + boolean exclusive;
|
| + boolean recursive;
|
| + };
|
| +
|
| // Callback to receive the result of mount() function.
|
| callback MountCallback = void([nodoc, instanceOf=DOMError] object error);
|
|
|
| @@ -218,6 +227,15 @@ namespace fileSystemProvider {
|
| ReadFileRequestedOptions options,
|
| FileDataCallback successCallback,
|
| 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
|
| + // already exists. If <code>recursive</code> is true, then all of the
|
| + // missing directories on the directory path should be created.
|
| + [maxListeners=1, nodoc] static void onCreateDirectoryRequested(
|
| + CreateDirectoryRequestedOptions options,
|
| + ProviderSuccessCallback successCallback,
|
| + ProviderErrorCallback errorCallback);
|
| };
|
| };
|
|
|
|
|