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

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

Issue 366263002: [fsp] Add support for creating directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated tests. 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 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
not at google - send to devlin 2014/07/08 16:29:43 it would be nice (generally speaking) if comments
mtomasz 2014/07/09 02:08:30 Let me clean up all of the comments in a separate
+ // missing directories on the directory path should be created.
+ [maxListeners=1, nodoc] static void onCreateDirectoryRequested(
not at google - send to devlin 2014/07/08 16:29:43 why is this nodoc?
mtomasz 2014/07/09 02:08:30 We don't want it on developer.chrome.com yet.
not at google - send to devlin 2014/07/09 02:34:39 why not?
not at google - send to devlin 2014/07/09 02:39:10 i.e. because if it's that the API isn't ready then
mtomasz 2014/07/09 04:03:11 The API is already restricted to build from source
not at google - send to devlin 2014/07/09 13:28:58 Ah I see. Yeah, nodoc is fine then.
+ CreateDirectoryRequestedOptions 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