| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "storage/browser/fileapi/file_system_backend.h" | 18 #include "storage/browser/fileapi/file_system_backend.h" |
| 16 #include "storage/browser/fileapi/task_runner_bound_observer_list.h" | 19 #include "storage/browser/fileapi/task_runner_bound_observer_list.h" |
| 17 #include "storage/common/fileapi/file_system_types.h" | 20 #include "storage/common/fileapi/file_system_types.h" |
| 18 | 21 |
| 19 namespace storage { | 22 namespace storage { |
| 20 class CopyOrMoveFileValidatorFactory; | 23 class CopyOrMoveFileValidatorFactory; |
| 21 class ExternalMountPoints; | 24 class ExternalMountPoints; |
| 22 class FileSystemURL; | 25 class FileSystemURL; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 base::File::Error* error_code) override; | 104 base::File::Error* error_code) override; |
| 102 storage::FileSystemOperation* CreateFileSystemOperation( | 105 storage::FileSystemOperation* CreateFileSystemOperation( |
| 103 const storage::FileSystemURL& url, | 106 const storage::FileSystemURL& url, |
| 104 storage::FileSystemContext* context, | 107 storage::FileSystemContext* context, |
| 105 base::File::Error* error_code) const override; | 108 base::File::Error* error_code) const override; |
| 106 bool SupportsStreaming(const storage::FileSystemURL& url) const override; | 109 bool SupportsStreaming(const storage::FileSystemURL& url) const override; |
| 107 bool HasInplaceCopyImplementation( | 110 bool HasInplaceCopyImplementation( |
| 108 storage::FileSystemType type) const override; | 111 storage::FileSystemType type) const override; |
| 109 scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 112 scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 110 const storage::FileSystemURL& path, | 113 const storage::FileSystemURL& path, |
| 111 int64 offset, | 114 int64_t offset, |
| 112 int64 max_bytes_to_read, | 115 int64_t max_bytes_to_read, |
| 113 const base::Time& expected_modification_time, | 116 const base::Time& expected_modification_time, |
| 114 storage::FileSystemContext* context) const override; | 117 storage::FileSystemContext* context) const override; |
| 115 scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 118 scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
| 116 const storage::FileSystemURL& url, | 119 const storage::FileSystemURL& url, |
| 117 int64 offset, | 120 int64_t offset, |
| 118 storage::FileSystemContext* context) const override; | 121 storage::FileSystemContext* context) const override; |
| 119 storage::FileSystemQuotaUtil* GetQuotaUtil() override; | 122 storage::FileSystemQuotaUtil* GetQuotaUtil() override; |
| 120 const storage::UpdateObserverList* GetUpdateObservers( | 123 const storage::UpdateObserverList* GetUpdateObservers( |
| 121 storage::FileSystemType type) const override; | 124 storage::FileSystemType type) const override; |
| 122 const storage::ChangeObserverList* GetChangeObservers( | 125 const storage::ChangeObserverList* GetChangeObservers( |
| 123 storage::FileSystemType type) const override; | 126 storage::FileSystemType type) const override; |
| 124 const storage::AccessObserverList* GetAccessObservers( | 127 const storage::AccessObserverList* GetAccessObservers( |
| 125 storage::FileSystemType type) const override; | 128 storage::FileSystemType type) const override; |
| 126 | 129 |
| 127 // storage::ExternalFileSystemBackend overrides. | 130 // storage::ExternalFileSystemBackend overrides. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Globally visible mount points. System MountPonts instance should outlive | 171 // Globally visible mount points. System MountPonts instance should outlive |
| 169 // all FileSystemBackend instances, so raw pointer is safe. | 172 // all FileSystemBackend instances, so raw pointer is safe. |
| 170 storage::ExternalMountPoints* system_mount_points_; | 173 storage::ExternalMountPoints* system_mount_points_; |
| 171 | 174 |
| 172 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); | 175 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); |
| 173 }; | 176 }; |
| 174 | 177 |
| 175 } // namespace chromeos | 178 } // namespace chromeos |
| 176 | 179 |
| 177 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 180 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |