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_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void FileExists(const FileSystemURL& url, | 46 virtual void FileExists(const FileSystemURL& url, |
47 const StatusCallback& callback) OVERRIDE; | 47 const StatusCallback& callback) OVERRIDE; |
48 virtual void GetMetadata(const FileSystemURL& url, | 48 virtual void GetMetadata(const FileSystemURL& url, |
49 const GetMetadataCallback& callback) OVERRIDE; | 49 const GetMetadataCallback& callback) OVERRIDE; |
50 virtual void ReadDirectory(const FileSystemURL& url, | 50 virtual void ReadDirectory(const FileSystemURL& url, |
51 const ReadDirectoryCallback& callback) OVERRIDE; | 51 const ReadDirectoryCallback& callback) OVERRIDE; |
52 virtual void Remove(const FileSystemURL& url, bool recursive, | 52 virtual void Remove(const FileSystemURL& url, bool recursive, |
53 const StatusCallback& callback) OVERRIDE; | 53 const StatusCallback& callback) OVERRIDE; |
54 virtual void Write(const net::URLRequestContext* url_request_context, | 54 virtual void Write(const net::URLRequestContext* url_request_context, |
55 const FileSystemURL& url, | 55 const FileSystemURL& url, |
56 const GURL& blob_url, | 56 scoped_ptr<webkit_blob::BlobDataHandle> blob_handle, |
57 int64 offset, | 57 int64 offset, |
58 const WriteCallback& callback) OVERRIDE; | 58 const WriteCallback& callback) OVERRIDE; |
59 virtual void Truncate(const FileSystemURL& url, int64 length, | 59 virtual void Truncate(const FileSystemURL& url, int64 length, |
60 const StatusCallback& callback) OVERRIDE; | 60 const StatusCallback& callback) OVERRIDE; |
61 virtual void TouchFile(const FileSystemURL& url, | 61 virtual void TouchFile(const FileSystemURL& url, |
62 const base::Time& last_access_time, | 62 const base::Time& last_access_time, |
63 const base::Time& last_modified_time, | 63 const base::Time& last_modified_time, |
64 const StatusCallback& callback) OVERRIDE; | 64 const StatusCallback& callback) OVERRIDE; |
65 virtual void OpenFile(const FileSystemURL& url, | 65 virtual void OpenFile(const FileSystemURL& url, |
66 int file_flags, | 66 int file_flags, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 StatusCallback completion_callback_; | 104 StatusCallback completion_callback_; |
105 | 105 |
106 bool is_directory_operation_enabled_; | 106 bool is_directory_operation_enabled_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); | 108 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace fileapi | 111 } // namespace fileapi |
112 | 112 |
113 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 113 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |