Index: webkit/fileapi/file_util_delete_helper.h |
diff --git a/webkit/fileapi/file_util_delete_helper.h b/webkit/fileapi/file_util_delete_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a06588e5194ed082e8ff66ee361babea94fb80ab |
--- /dev/null |
+++ b/webkit/fileapi/file_util_delete_helper.h |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WEBKIT_FILEAPI_FILE_UTIL_DELETE_HELPER_H_ |
+#define WEBKIT_FILEAPI_FILE_UTIL_DELETE_HELPER_H_ |
+ |
+#include "base/platform_file.h" |
+ |
+namespace fileapi { |
+ |
+class FileSystemFileUtil; |
+class FileSystemOperationContext; |
+class FileSystemPath; |
+ |
+// A helper class for FileUtil Delete operations. |
+class FileUtilDeleteHelper { |
+ public: |
+ FileUtilDeleteHelper(FileSystemOperationContext* context, |
+ FileSystemFileUtil* file_util); |
+ ~FileUtilDeleteHelper(); |
+ |
+ base::PlatformFileError DoWork(const FileSystemPath& path, bool recursive); |
+ |
+ private: |
+ base::PlatformFileError DeleteDirectoryRecursive(const FileSystemPath& path); |
+ |
+ FileSystemOperationContext* context_; |
+ FileSystemFileUtil* file_util_; // Not owned. |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FileUtilDeleteHelper); |
+}; |
+ |
+} // namespace fileapi |
+ |
+#endif // WEBKIT_FILEAPI_FILE_UTIL_DELETE_HELPER_H_ |