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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h

Issue 366263002: [fsp] Add support for creating directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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/browser/chromeos/file_system_provider/provided_file_system_interface.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
index 3f2a2249750f2dae0bf2ccd705a402417657abf7..9858ee2ee802fce15f8dd2b5641c1ee4b172f7d1 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
@@ -101,6 +101,15 @@ class ProvidedFileSystemInterface {
int length,
const ReadChunkReceivedCallback& callback) = 0;
+ // Requests creating a directory. If |recursive| is passed, then all non
+ // existing directories on the path will be created. If |exclusive| is true,
+ // then creating the directory will fail, if it already exists.
+ virtual void CreateDirectory(
+ const base::FilePath& directory_path,
+ bool exclusive,
+ bool recursive,
+ const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
+
// Returns a provided file system info for this file system.
virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;

Powered by Google App Engine
This is Rietveld 408576698