| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void Truncate(const FileSystemURL& url, int64 length, | 80 virtual void Truncate(const FileSystemURL& url, int64 length, |
| 81 const StatusCallback& callback) OVERRIDE; | 81 const StatusCallback& callback) OVERRIDE; |
| 82 virtual void TouchFile(const FileSystemURL& url, | 82 virtual void TouchFile(const FileSystemURL& url, |
| 83 const base::Time& last_access_time, | 83 const base::Time& last_access_time, |
| 84 const base::Time& last_modified_time, | 84 const base::Time& last_modified_time, |
| 85 const StatusCallback& callback) OVERRIDE; | 85 const StatusCallback& callback) OVERRIDE; |
| 86 virtual void OpenFile(const FileSystemURL& url, | 86 virtual void OpenFile(const FileSystemURL& url, |
| 87 int file_flags, | 87 int file_flags, |
| 88 base::ProcessHandle peer_handle, | 88 base::ProcessHandle peer_handle, |
| 89 const OpenFileCallback& callback) OVERRIDE; | 89 const OpenFileCallback& callback) OVERRIDE; |
| 90 virtual void NotifyCloseFile(const FileSystemURL& url) OVERRIDE; |
| 90 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; | 91 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; |
| 91 virtual FileSystemOperation* AsFileSystemOperation() OVERRIDE; | 92 virtual FileSystemOperation* AsFileSystemOperation() OVERRIDE; |
| 92 virtual void CreateSnapshotFile( | 93 virtual void CreateSnapshotFile( |
| 93 const FileSystemURL& path, | 94 const FileSystemURL& path, |
| 94 const SnapshotFileCallback& callback) OVERRIDE; | 95 const SnapshotFileCallback& callback) OVERRIDE; |
| 95 | 96 |
| 96 // Synchronously gets the platform path for the given |url|. | 97 // Synchronously gets the platform path for the given |url|. |
| 97 void SyncGetPlatformPath(const FileSystemURL& url, FilePath* platform_path); | 98 void SyncGetPlatformPath(const FileSystemURL& url, FilePath* platform_path); |
| 98 | 99 |
| 99 private: | 100 private: |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // FileSystemOperation instance is usually deleted upon completion but | 268 // FileSystemOperation instance is usually deleted upon completion but |
| 268 // could be deleted while it has inflight callbacks when Cancel is called. | 269 // could be deleted while it has inflight callbacks when Cancel is called. |
| 269 base::WeakPtrFactory<FileSystemOperation> weak_factory_; | 270 base::WeakPtrFactory<FileSystemOperation> weak_factory_; |
| 270 | 271 |
| 271 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 272 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
| 272 }; | 273 }; |
| 273 | 274 |
| 274 } // namespace fileapi | 275 } // namespace fileapi |
| 275 | 276 |
| 276 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 277 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |