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

Unified Diff: webkit/fileapi/file_util_helper.h

Issue 9564047: Add FileUtileHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/DeletePath/Delete/g Created 8 years, 10 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
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_util_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_util_helper.h
diff --git a/webkit/fileapi/file_util_helper.h b/webkit/fileapi/file_util_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..91c6e7ab602a571b138cce20c4f5930939bd9e21
--- /dev/null
+++ b/webkit/fileapi/file_util_helper.h
@@ -0,0 +1,35 @@
+// 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_HELPER_H_
+#define WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_
+
+#include "base/platform_file.h"
+
+namespace fileapi {
+
+class FileSystemFileUtil;
+class FileSystemOperationContext;
+class FileSystemPath;
+
+// A collection of static methods that are usually called by
+// FileSystemFileUtilProxy. The method should be called on FILE thread.
+class FileUtilHelper {
+ public:
+ static base::PlatformFileError Delete(
+ FileSystemOperationContext* context,
+ FileSystemFileUtil* file_util,
+ const FileSystemPath& path,
+ bool recursive);
+
+ private:
+ static base::PlatformFileError DeleteDirectoryRecursive(
+ FileSystemOperationContext* context,
+ FileSystemFileUtil* file_util,
+ const FileSystemPath& path);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_util_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698