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 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 base::PlatformFileError rv); | 219 base::PlatformFileError rv); |
220 void DidOpenFile(const OpenFileCallback& callback, | 220 void DidOpenFile(const OpenFileCallback& callback, |
221 base::PlatformFileError rv, | 221 base::PlatformFileError rv, |
222 base::PassPlatformFile file, | 222 base::PassPlatformFile file, |
223 bool created); | 223 bool created); |
224 void DidCreateSnapshotFile( | 224 void DidCreateSnapshotFile( |
225 const SnapshotFileCallback& callback, | 225 const SnapshotFileCallback& callback, |
226 base::PlatformFileError rv, | 226 base::PlatformFileError rv, |
227 const base::PlatformFileInfo& file_info, | 227 const base::PlatformFileInfo& file_info, |
228 const FilePath& platform_path, | 228 const FilePath& platform_path, |
229 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); | 229 FileSystemFileUtil::SnapshotFilePolicy snapshot_policy); |
230 | 230 |
231 // Checks the validity of a given |url| and populates |file_util| for |mode|. | 231 // Checks the validity of a given |url| and populates |file_util| for |mode|. |
232 base::PlatformFileError SetUp( | 232 base::PlatformFileError SetUp( |
233 const FileSystemURL& url, | 233 const FileSystemURL& url, |
234 FileSystemFileUtil** file_util, | 234 FileSystemFileUtil** file_util, |
235 SetUpMode mode); | 235 SetUpMode mode); |
236 | 236 |
237 // Used only for internal assertions. | 237 // Used only for internal assertions. |
238 // Returns false if there's another inflight pending operation. | 238 // Returns false if there's another inflight pending operation. |
239 bool SetPendingOperationType(OperationType type); | 239 bool SetPendingOperationType(OperationType type); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // LocalFileSystemOperation instance is usually deleted upon completion but | 272 // LocalFileSystemOperation instance is usually deleted upon completion but |
273 // could be deleted while it has inflight callbacks when Cancel is called. | 273 // could be deleted while it has inflight callbacks when Cancel is called. |
274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; | 274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; |
275 | 275 |
276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); | 276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); |
277 }; | 277 }; |
278 | 278 |
279 } // namespace fileapi | 279 } // namespace fileapi |
280 | 280 |
281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |