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

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

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 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
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | webkit/fileapi/file_writer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 8 #include <vector>
9 9
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "webkit/fileapi/fileapi_export.h"
12 13
13 namespace fileapi { 14 namespace fileapi {
14 15
15 class FileSystemFileUtil; 16 class FileSystemFileUtil;
16 class FileSystemOperationContext; 17 class FileSystemOperationContext;
17 class FileSystemPath; 18 class FileSystemPath;
18 19
19 // A collection of static methods that are usually called by 20 // A collection of static methods that are usually called by
20 // FileSystemFileUtilProxy. The method should be called on FILE thread. 21 // FileSystemFileUtilProxy. The method should be called on FILE thread.
21 class FileUtilHelper { 22 class FILEAPI_EXPORT_PRIVATE FileUtilHelper {
22 public: 23 public:
23 static base::PlatformFileError Copy( 24 static base::PlatformFileError Copy(
24 FileSystemOperationContext* context, 25 FileSystemOperationContext* context,
25 FileSystemFileUtil* src_file_util, 26 FileSystemFileUtil* src_file_util,
26 FileSystemFileUtil* dest_file_utile, 27 FileSystemFileUtil* dest_file_utile,
27 const FileSystemPath& src_root_path, 28 const FileSystemPath& src_root_path,
28 const FileSystemPath& dest_root_path); 29 const FileSystemPath& dest_root_path);
29 30
30 static base::PlatformFileError Move( 31 static base::PlatformFileError Move(
31 FileSystemOperationContext* context, 32 FileSystemOperationContext* context,
(...skipping 17 matching lines...) Expand all
49 private: 50 private:
50 static base::PlatformFileError DeleteDirectoryRecursive( 51 static base::PlatformFileError DeleteDirectoryRecursive(
51 FileSystemOperationContext* context, 52 FileSystemOperationContext* context,
52 FileSystemFileUtil* file_util, 53 FileSystemFileUtil* file_util,
53 const FileSystemPath& path); 54 const FileSystemPath& path);
54 }; 55 };
55 56
56 } // namespace fileapi 57 } // namespace fileapi
57 58
58 #endif // WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_ 59 #endif // WEBKIT_FILEAPI_FILE_UTIL_HELPER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | webkit/fileapi/file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698