diff options
Diffstat (limited to 'chrome/common/file_system/webfilesystem_impl.cc')
-rw-r--r-- | chrome/common/file_system/webfilesystem_impl.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/common/file_system/webfilesystem_impl.cc b/chrome/common/file_system/webfilesystem_impl.cc index 9128cf1..5b180f6 100644 --- a/chrome/common/file_system/webfilesystem_impl.cc +++ b/chrome/common/file_system/webfilesystem_impl.cc @@ -47,6 +47,16 @@ void WebFileSystemImpl::remove(const WebString& path, FileSystemDispatcher* dispatcher = ChildThread::current()->file_system_dispatcher(); dispatcher->Remove(webkit_glue::WebStringToFilePath(path), + false /* recursive */, + new WebFileSystemCallbackDispatcher(callbacks)); +} + +void WebFileSystemImpl::removeRecursively(const WebString& path, + WebFileSystemCallbacks* callbacks) { + FileSystemDispatcher* dispatcher = + ChildThread::current()->file_system_dispatcher(); + dispatcher->Remove(webkit_glue::WebStringToFilePath(path), + true /* recursive */, new WebFileSystemCallbackDispatcher(callbacks)); } @@ -104,4 +114,3 @@ WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter( const WebString& path, WebKit::WebFileWriterClient* client) { return new WebFileWriterImpl(path, client); } - |