OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_LOCAL_FILE_SYSTEM_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_ |
6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const FilePath& file_path, | 70 const FilePath& file_path, |
71 bool exclusive, | 71 bool exclusive, |
72 bool recursive); | 72 bool recursive); |
73 | 73 |
74 virtual PlatformFileError CopyOrMoveFile( | 74 virtual PlatformFileError CopyOrMoveFile( |
75 FileSystemOperationContext* context, | 75 FileSystemOperationContext* context, |
76 const FilePath& src_file_path, | 76 const FilePath& src_file_path, |
77 const FilePath& dest_file_path, | 77 const FilePath& dest_file_path, |
78 bool copy); | 78 bool copy); |
79 | 79 |
| 80 virtual PlatformFileError CopyInForeignFile( |
| 81 FileSystemOperationContext* context, |
| 82 const FilePath& src_file_path, |
| 83 const FilePath& dest_file_path); |
| 84 |
80 virtual PlatformFileError DeleteFile( | 85 virtual PlatformFileError DeleteFile( |
81 FileSystemOperationContext* context, | 86 FileSystemOperationContext* context, |
82 const FilePath& file_path); | 87 const FilePath& file_path); |
83 | 88 |
84 virtual PlatformFileError DeleteSingleDirectory( | 89 virtual PlatformFileError DeleteSingleDirectory( |
85 FileSystemOperationContext* context, | 90 FileSystemOperationContext* context, |
86 const FilePath& file_path); | 91 const FilePath& file_path); |
87 | 92 |
88 virtual PlatformFileError Touch( | 93 virtual PlatformFileError Touch( |
89 FileSystemOperationContext* context, | 94 FileSystemOperationContext* context, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 FilePath GetLocalPath( | 129 FilePath GetLocalPath( |
125 FileSystemOperationContext* context, | 130 FileSystemOperationContext* context, |
126 const GURL& origin_url, | 131 const GURL& origin_url, |
127 FileSystemType type, | 132 FileSystemType type, |
128 const FilePath& virtual_path); | 133 const FilePath& virtual_path); |
129 }; | 134 }; |
130 | 135 |
131 } // namespace fileapi | 136 } // namespace fileapi |
132 | 137 |
133 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_ | 138 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_ |
OLD | NEW |