OLD | NEW |
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_LOCAL_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/file_util_proxy.h" | 12 #include "base/file_util_proxy.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
18 #include "base/process.h" | 18 #include "base/process.h" |
19 #include "webkit/fileapi/file_system_operation.h" | 19 #include "webkit/fileapi/file_system_operation.h" |
20 #include "webkit/fileapi/file_system_operation_context.h" | 20 #include "webkit/fileapi/file_system_operation_context.h" |
21 #include "webkit/fileapi/file_system_types.h" | 21 #include "webkit/fileapi/file_system_types.h" |
22 #include "webkit/fileapi/file_system_url.h" | 22 #include "webkit/fileapi/file_system_url.h" |
| 23 #include "webkit/fileapi/file_writer_delegate.h" |
23 #include "webkit/fileapi/fileapi_export.h" | 24 #include "webkit/fileapi/fileapi_export.h" |
24 #include "webkit/quota/quota_manager.h" | 25 #include "webkit/quota/quota_manager.h" |
25 | 26 |
26 namespace base { | 27 namespace base { |
27 class Time; | 28 class Time; |
28 } | 29 } |
29 | 30 |
30 namespace chromeos { | 31 namespace chromeos { |
31 class CrosMountPointProvider; | 32 class CrosMountPointProvider; |
32 } | 33 } |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 const base::PlatformFileInfo& file_info, | 208 const base::PlatformFileInfo& file_info, |
208 const FilePath& unused); | 209 const FilePath& unused); |
209 void DidGetMetadata(const GetMetadataCallback& callback, | 210 void DidGetMetadata(const GetMetadataCallback& callback, |
210 base::PlatformFileError rv, | 211 base::PlatformFileError rv, |
211 const base::PlatformFileInfo& file_info, | 212 const base::PlatformFileInfo& file_info, |
212 const FilePath& platform_path); | 213 const FilePath& platform_path); |
213 void DidReadDirectory(const ReadDirectoryCallback& callback, | 214 void DidReadDirectory(const ReadDirectoryCallback& callback, |
214 base::PlatformFileError rv, | 215 base::PlatformFileError rv, |
215 const std::vector<base::FileUtilProxy::Entry>& entries, | 216 const std::vector<base::FileUtilProxy::Entry>& entries, |
216 bool has_more); | 217 bool has_more); |
217 void DidWrite(base::PlatformFileError rv, | 218 void DidWrite(const FileSystemURL& url, |
| 219 base::PlatformFileError rv, |
218 int64 bytes, | 220 int64 bytes, |
219 bool complete); | 221 FileWriterDelegate::WriteProgressStatus write_status); |
220 void DidTouchFile(const StatusCallback& callback, | 222 void DidTouchFile(const StatusCallback& callback, |
221 base::PlatformFileError rv); | 223 base::PlatformFileError rv); |
222 void DidOpenFile(const OpenFileCallback& callback, | 224 void DidOpenFile(const OpenFileCallback& callback, |
223 base::PlatformFileError rv, | 225 base::PlatformFileError rv, |
224 base::PassPlatformFile file, | 226 base::PassPlatformFile file, |
225 bool created); | 227 bool created); |
226 void DidCreateSnapshotFile( | 228 void DidCreateSnapshotFile( |
227 const SnapshotFileCallback& callback, | 229 const SnapshotFileCallback& callback, |
228 base::PlatformFileError rv, | 230 base::PlatformFileError rv, |
229 const base::PlatformFileInfo& file_info, | 231 const base::PlatformFileInfo& file_info, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // LocalFileSystemOperation instance is usually deleted upon completion but | 274 // LocalFileSystemOperation instance is usually deleted upon completion but |
273 // could be deleted while it has inflight callbacks when Cancel is called. | 275 // could be deleted while it has inflight callbacks when Cancel is called. |
274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; | 276 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; |
275 | 277 |
276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); | 278 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); |
277 }; | 279 }; |
278 | 280 |
279 } // namespace fileapi | 281 } // namespace fileapi |
280 | 282 |
281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 283 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |