| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "webkit/browser/fileapi/file_system_backend.h" | 14 #include "webkit/browser/fileapi/file_system_backend.h" |
| 15 #include "webkit/browser/quota/special_storage_policy.h" | 15 #include "webkit/browser/quota/special_storage_policy.h" |
| 16 #include "webkit/common/fileapi/file_system_types.h" | 16 #include "webkit/common/fileapi/file_system_types.h" |
| 17 | 17 |
| 18 namespace fileapi { | 18 namespace fileapi { |
| 19 class CopyOrMoveFileValidatorFactory; | 19 class CopyOrMoveFileValidatorFactory; |
| 20 class ExternalMountPoints; | 20 class ExternalMountPoints; |
| 21 class FileSystemURL; | 21 class FileSystemURL; |
| 22 class WatcherManager; |
| 22 } // namespace fileapi | 23 } // namespace fileapi |
| 23 | 24 |
| 24 namespace chromeos { | 25 namespace chromeos { |
| 25 | 26 |
| 26 class FileSystemBackendDelegate; | 27 class FileSystemBackendDelegate; |
| 27 class FileAccessPermissions; | 28 class FileAccessPermissions; |
| 28 | 29 |
| 29 // FileSystemBackend is a Chrome OS specific implementation of | 30 // FileSystemBackend is a Chrome OS specific implementation of |
| 30 // ExternalFileSystemBackend. This class is responsible for a | 31 // ExternalFileSystemBackend. This class is responsible for a |
| 31 // number of things, including: | 32 // number of things, including: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 static bool CanHandleURL(const fileapi::FileSystemURL& url); | 87 static bool CanHandleURL(const fileapi::FileSystemURL& url); |
| 87 | 88 |
| 88 // fileapi::FileSystemBackend overrides. | 89 // fileapi::FileSystemBackend overrides. |
| 89 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; | 90 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; |
| 90 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; | 91 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; |
| 91 virtual void ResolveURL(const fileapi::FileSystemURL& url, | 92 virtual void ResolveURL(const fileapi::FileSystemURL& url, |
| 92 fileapi::OpenFileSystemMode mode, | 93 fileapi::OpenFileSystemMode mode, |
| 93 const OpenFileSystemCallback& callback) OVERRIDE; | 94 const OpenFileSystemCallback& callback) OVERRIDE; |
| 94 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( | 95 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( |
| 95 fileapi::FileSystemType type) OVERRIDE; | 96 fileapi::FileSystemType type) OVERRIDE; |
| 97 virtual fileapi::WatcherManager* GetWatcherManager( |
| 98 fileapi::FileSystemType type) OVERRIDE; |
| 96 virtual fileapi::CopyOrMoveFileValidatorFactory* | 99 virtual fileapi::CopyOrMoveFileValidatorFactory* |
| 97 GetCopyOrMoveFileValidatorFactory( | 100 GetCopyOrMoveFileValidatorFactory( |
| 98 fileapi::FileSystemType type, | 101 fileapi::FileSystemType type, |
| 99 base::File::Error* error_code) OVERRIDE; | 102 base::File::Error* error_code) OVERRIDE; |
| 100 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( | 103 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( |
| 101 const fileapi::FileSystemURL& url, | 104 const fileapi::FileSystemURL& url, |
| 102 fileapi::FileSystemContext* context, | 105 fileapi::FileSystemContext* context, |
| 103 base::File::Error* error_code) const OVERRIDE; | 106 base::File::Error* error_code) const OVERRIDE; |
| 104 virtual bool SupportsStreaming( | 107 virtual bool SupportsStreaming( |
| 105 const fileapi::FileSystemURL& url) const OVERRIDE; | 108 const fileapi::FileSystemURL& url) const OVERRIDE; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Globally visible mount points. System MountPonts instance should outlive | 161 // Globally visible mount points. System MountPonts instance should outlive |
| 159 // all FileSystemBackend instances, so raw pointer is safe. | 162 // all FileSystemBackend instances, so raw pointer is safe. |
| 160 fileapi::ExternalMountPoints* system_mount_points_; | 163 fileapi::ExternalMountPoints* system_mount_points_; |
| 161 | 164 |
| 162 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); | 165 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 } // namespace chromeos | 168 } // namespace chromeos |
| 166 | 169 |
| 167 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 170 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |