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_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 bool has_more); | 216 bool has_more); |
217 void DidWrite(base::PlatformFileError rv, | 217 void DidWrite(base::PlatformFileError rv, |
218 int64 bytes, | 218 int64 bytes, |
219 bool complete); | 219 bool complete); |
220 void DidTouchFile(const StatusCallback& callback, | 220 void DidTouchFile(const StatusCallback& callback, |
221 base::PlatformFileError rv); | 221 base::PlatformFileError rv); |
222 void DidOpenFile(const OpenFileCallback& callback, | 222 void DidOpenFile(const OpenFileCallback& callback, |
223 base::PlatformFileError rv, | 223 base::PlatformFileError rv, |
224 base::PassPlatformFile file, | 224 base::PassPlatformFile file, |
225 bool created); | 225 bool created); |
| 226 void DidCreateSnapshotFile( |
| 227 const SnapshotFileCallback& callback, |
| 228 base::PlatformFileError rv, |
| 229 const base::PlatformFileInfo& file_info, |
| 230 const FilePath& platform_path, |
| 231 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); |
226 | 232 |
227 // Checks the validity of a given |url| and populates |file_util| for |mode|. | 233 // Checks the validity of a given |url| and populates |file_util| for |mode|. |
228 base::PlatformFileError SetUp( | 234 base::PlatformFileError SetUp( |
229 const FileSystemURL& url, | 235 const FileSystemURL& url, |
230 FileSystemFileUtil** file_util, | 236 FileSystemFileUtil** file_util, |
231 SetUpMode mode); | 237 SetUpMode mode); |
232 | 238 |
233 // Used only for internal assertions. | 239 // Used only for internal assertions. |
234 // Returns false if there's another inflight pending operation. | 240 // Returns false if there's another inflight pending operation. |
235 bool SetPendingOperationType(OperationType type); | 241 bool SetPendingOperationType(OperationType type); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // FileSystemOperation instance is usually deleted upon completion but | 274 // FileSystemOperation instance is usually deleted upon completion but |
269 // 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. |
270 base::WeakPtrFactory<FileSystemOperation> weak_factory_; | 276 base::WeakPtrFactory<FileSystemOperation> weak_factory_; |
271 | 277 |
272 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 278 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
273 }; | 279 }; |
274 | 280 |
275 } // namespace fileapi | 281 } // namespace fileapi |
276 | 282 |
277 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 283 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |