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 STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ |
6 #define STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ | 6 #define STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "storage/browser/fileapi/file_system_backend.h" | 9 #include "storage/browser/fileapi/file_system_backend.h" |
| 10 #include "storage/browser/fileapi/task_runner_bound_observer_list.h" |
10 | 11 |
11 namespace storage { | 12 namespace storage { |
12 | 13 |
13 class AsyncFileUtilAdapter; | 14 class AsyncFileUtilAdapter; |
14 | 15 |
15 class IsolatedFileSystemBackend : public FileSystemBackend { | 16 class IsolatedFileSystemBackend : public FileSystemBackend { |
16 public: | 17 public: |
17 IsolatedFileSystemBackend(); | 18 IsolatedFileSystemBackend(); |
18 virtual ~IsolatedFileSystemBackend(); | 19 virtual ~IsolatedFileSystemBackend(); |
19 | 20 |
(...skipping 18 matching lines...) Expand all Loading... |
38 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 39 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
39 const FileSystemURL& url, | 40 const FileSystemURL& url, |
40 int64 offset, | 41 int64 offset, |
41 const base::Time& expected_modification_time, | 42 const base::Time& expected_modification_time, |
42 FileSystemContext* context) const OVERRIDE; | 43 FileSystemContext* context) const OVERRIDE; |
43 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( | 44 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( |
44 const FileSystemURL& url, | 45 const FileSystemURL& url, |
45 int64 offset, | 46 int64 offset, |
46 FileSystemContext* context) const OVERRIDE; | 47 FileSystemContext* context) const OVERRIDE; |
47 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 48 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 49 virtual const UpdateObserverList* GetUpdateObservers( |
| 50 FileSystemType type) const OVERRIDE; |
| 51 virtual const ChangeObserverList* GetChangeObservers( |
| 52 FileSystemType type) const OVERRIDE; |
| 53 virtual const AccessObserverList* GetAccessObservers( |
| 54 FileSystemType type) const OVERRIDE; |
48 | 55 |
49 private: | 56 private: |
50 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_; | 57 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_; |
51 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_; | 58 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_; |
52 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_; | 59 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_; |
53 }; | 60 }; |
54 | 61 |
55 } // namespace storage | 62 } // namespace storage |
56 | 63 |
57 #endif // STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ | 64 #endif // STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |