summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_file_util_proxy.cc
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 22:57:58 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 22:57:58 +0000
commit3bf73d5ec779ce14a04a00d24d71a038fd954832 (patch)
tree2e004608e064b71f49a3e925b5209076b7a9abf2 /webkit/fileapi/file_system_file_util_proxy.cc
parente01e7dc7572fd5e3115ad7624a75a5bc3c99cfac (diff)
downloadchromium_src-3bf73d5ec779ce14a04a00d24d71a038fd954832.zip
chromium_src-3bf73d5ec779ce14a04a00d24d71a038fd954832.tar.gz
chromium_src-3bf73d5ec779ce14a04a00d24d71a038fd954832.tar.bz2
Revive FileAPI's recursive CreateDirectory.
PPAPI's MakeDirectoryIncludingAncestors() (ppapi/cpp/dev/file_ref_dev.cc) uses recursive CreateDirectory. BUG=74841 TEST=none Review URL: http://codereview.chromium.org/6627028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_file_util_proxy.cc')
-rw-r--r--webkit/fileapi/file_system_file_util_proxy.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/webkit/fileapi/file_system_file_util_proxy.cc b/webkit/fileapi/file_system_file_util_proxy.cc
index 3b14e16..faf3d4a 100644
--- a/webkit/fileapi/file_system_file_util_proxy.cc
+++ b/webkit/fileapi/file_system_file_util_proxy.cc
@@ -258,22 +258,25 @@ class RelayCreateDirectory : public RelayWithStatusCallback {
const fileapi::FileSystemOperationContext& context,
const FilePath& file_path,
bool exclusive,
+ bool recursive,
fileapi::FileSystemFileUtilProxy::StatusCallback* callback)
: RelayWithStatusCallback(context, callback),
file_path_(file_path),
- exclusive_(exclusive) {
+ exclusive_(exclusive),
+ recursive_(recursive) {
}
protected:
virtual void RunWork() {
set_error_code(
file_system_file_util()->CreateDirectory(
- context(), file_path_, exclusive_));
+ context(), file_path_, exclusive_, recursive_));
}
private:
FilePath file_path_;
bool exclusive_;
+ bool recursive_;
};
class RelayCopy : public RelayWithStatusCallback {
@@ -460,9 +463,10 @@ bool FileSystemFileUtilProxy::CreateDirectory(
scoped_refptr<MessageLoopProxy> message_loop_proxy,
const FilePath& file_path,
bool exclusive,
+ bool recursive,
StatusCallback* callback) {
return Start(FROM_HERE, message_loop_proxy, new RelayCreateDirectory(
- context, file_path, exclusive, callback));
+ context, file_path, exclusive, recursive, callback));
}
// static