OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ |
| 7 |
| 8 #include "base/platform_file.h" |
| 9 |
| 10 namespace fileapi { |
| 11 |
| 12 class FileSystemFileUtil; |
| 13 class FileSystemOperationContext; |
| 14 class FileSystemPath; |
| 15 |
| 16 // A collection of static methods that are usually called by |
| 17 // FileSystemFileUtilProxy. The method should be called on FILE thread. |
| 18 class FileUtilHelper { |
| 19 public: |
| 20 static base::PlatformFileError Delete( |
| 21 FileSystemOperationContext* context, |
| 22 FileSystemFileUtil* file_util, |
| 23 const FileSystemPath& path, |
| 24 bool recursive); |
| 25 |
| 26 private: |
| 27 static base::PlatformFileError DeleteDirectoryRecursive( |
| 28 FileSystemOperationContext* context, |
| 29 FileSystemFileUtil* file_util, |
| 30 const FileSystemPath& path); |
| 31 }; |
| 32 |
| 33 } // namespace fileapi |
| 34 |
| 35 #endif // WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ |
OLD | NEW |