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

Side by Side Diff: webkit/fileapi/file_util_delete_helper.h

Issue 9564047: Add FileUtileHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_DELETE_HELPER_H_
6 #define WEBKIT_FILEAPI_FILE_UTIL_DELETE_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 helper class for FileUtil Delete operations.
17 class FileUtilDeleteHelper {
18 public:
19 FileUtilDeleteHelper(FileSystemOperationContext* context,
20 FileSystemFileUtil* file_util);
21 ~FileUtilDeleteHelper();
22
23 base::PlatformFileError DoWork(const FileSystemPath& path, bool recursive);
24
25 private:
26 base::PlatformFileError DeleteDirectoryRecursive(const FileSystemPath& path);
27
28 FileSystemOperationContext* context_;
29 FileSystemFileUtil* file_util_; // Not owned.
30
31 DISALLOW_COPY_AND_ASSIGN(FileUtilDeleteHelper);
32 };
33
34 } // namespace fileapi
35
36 #endif // WEBKIT_FILEAPI_FILE_UTIL_DELETE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698