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

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

Issue 9616033: Merge CrossFileUtilHelper to FileUtilHelper as Copy() and Move(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_
6 #define WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ 6 #define WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 9
10 namespace fileapi { 10 namespace fileapi {
11 11
12 class FileSystemFileUtil; 12 class FileSystemFileUtil;
13 class FileSystemOperationContext; 13 class FileSystemOperationContext;
14 class FileSystemPath; 14 class FileSystemPath;
15 15
16 // A collection of static methods that are usually called by 16 // A collection of static methods that are usually called by
17 // FileSystemFileUtilProxy. The method should be called on FILE thread. 17 // FileSystemFileUtilProxy. The method should be called on FILE thread.
18 class FileUtilHelper { 18 class FileUtilHelper {
19 public: 19 public:
20 static base::PlatformFileError Copy(
21 FileSystemOperationContext* context,
22 FileSystemFileUtil* src_file_util,
23 FileSystemFileUtil* dest_file_utile,
24 const FileSystemPath& src_root_path,
25 const FileSystemPath& dest_root_path);
26
27 static base::PlatformFileError Move(
28 FileSystemOperationContext* context,
29 FileSystemFileUtil* src_file_util,
30 FileSystemFileUtil* dest_file_utile,
31 const FileSystemPath& src_root_path,
32 const FileSystemPath& dest_root_path);
33
20 static base::PlatformFileError Delete( 34 static base::PlatformFileError Delete(
21 FileSystemOperationContext* context, 35 FileSystemOperationContext* context,
22 FileSystemFileUtil* file_util, 36 FileSystemFileUtil* file_util,
23 const FileSystemPath& path, 37 const FileSystemPath& path,
24 bool recursive); 38 bool recursive);
25 39
26 private: 40 private:
27 static base::PlatformFileError DeleteDirectoryRecursive( 41 static base::PlatformFileError DeleteDirectoryRecursive(
28 FileSystemOperationContext* context, 42 FileSystemOperationContext* context,
29 FileSystemFileUtil* file_util, 43 FileSystemFileUtil* file_util,
30 const FileSystemPath& path); 44 const FileSystemPath& path);
31 }; 45 };
32 46
33 } // namespace fileapi 47 } // namespace fileapi
34 48
35 #endif // WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ 49 #endif // WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698