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_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 const FileSystemURL& url, | 196 const FileSystemURL& url, |
197 int64 offset, | 197 int64 offset, |
198 const base::Time& expected_modification_time); | 198 const base::Time& expected_modification_time); |
199 | 199 |
200 // Creates new FileStreamWriter instance to write into a file pointed by | 200 // Creates new FileStreamWriter instance to write into a file pointed by |
201 // |url| from |offset|. | 201 // |url| from |offset|. |
202 scoped_ptr<FileStreamWriter> CreateFileStreamWriter( | 202 scoped_ptr<FileStreamWriter> CreateFileStreamWriter( |
203 const FileSystemURL& url, | 203 const FileSystemURL& url, |
204 int64 offset); | 204 int64 offset); |
205 | 205 |
| 206 // Creates a new FileSystemOperationRunner. |
| 207 scoped_ptr<FileSystemOperationRunner> CreateFileSystemOperationRunner(); |
| 208 |
206 FileSystemTaskRunners* task_runners() { return task_runners_.get(); } | 209 FileSystemTaskRunners* task_runners() { return task_runners_.get(); } |
207 | 210 |
208 FileSystemOperationRunner* operation_runner() { | 211 FileSystemOperationRunner* operation_runner() { |
209 return operation_runner_.get(); | 212 return operation_runner_.get(); |
210 } | 213 } |
211 | 214 |
212 sync_file_system::LocalFileChangeTracker* change_tracker() { | 215 sync_file_system::LocalFileChangeTracker* change_tracker() { |
213 return change_tracker_.get(); | 216 return change_tracker_.get(); |
214 } | 217 } |
215 void SetLocalFileChangeTracker( | 218 void SetLocalFileChangeTracker( |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 329 |
327 struct DefaultContextDeleter { | 330 struct DefaultContextDeleter { |
328 static void Destruct(const FileSystemContext* context) { | 331 static void Destruct(const FileSystemContext* context) { |
329 context->DeleteOnCorrectThread(); | 332 context->DeleteOnCorrectThread(); |
330 } | 333 } |
331 }; | 334 }; |
332 | 335 |
333 } // namespace fileapi | 336 } // namespace fileapi |
334 | 337 |
335 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 338 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
OLD | NEW |