| 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 WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class PluginPrivateFileSystemBackendTest; | 22 class PluginPrivateFileSystemBackendTest; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace quota { | 25 namespace quota { |
| 26 class SpecialStoragePolicy; | 26 class SpecialStoragePolicy; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace fileapi { | 29 namespace fileapi { |
| 30 | 30 |
| 31 class ObfuscatedFileUtil; | 31 class ObfuscatedFileUtil; |
| 32 class WatcherManager; |
| 32 | 33 |
| 33 class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend | 34 class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend |
| 34 : public FileSystemBackend, | 35 : public FileSystemBackend, |
| 35 public FileSystemQuotaUtil { | 36 public FileSystemQuotaUtil { |
| 36 public: | 37 public: |
| 37 class FileSystemIDToPluginMap; | 38 class FileSystemIDToPluginMap; |
| 38 typedef base::Callback<void(base::File::Error result)> StatusCallback; | 39 typedef base::Callback<void(base::File::Error result)> StatusCallback; |
| 39 | 40 |
| 40 PluginPrivateFileSystemBackend( | 41 PluginPrivateFileSystemBackend( |
| 41 base::SequencedTaskRunner* file_task_runner, | 42 base::SequencedTaskRunner* file_task_runner, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 58 OpenFileSystemMode mode, | 59 OpenFileSystemMode mode, |
| 59 const StatusCallback& callback); | 60 const StatusCallback& callback); |
| 60 | 61 |
| 61 // FileSystemBackend overrides. | 62 // FileSystemBackend overrides. |
| 62 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; | 63 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
| 63 virtual void Initialize(FileSystemContext* context) OVERRIDE; | 64 virtual void Initialize(FileSystemContext* context) OVERRIDE; |
| 64 virtual void ResolveURL(const FileSystemURL& url, | 65 virtual void ResolveURL(const FileSystemURL& url, |
| 65 OpenFileSystemMode mode, | 66 OpenFileSystemMode mode, |
| 66 const OpenFileSystemCallback& callback) OVERRIDE; | 67 const OpenFileSystemCallback& callback) OVERRIDE; |
| 67 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 68 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; |
| 69 virtual WatcherManager* GetWatcherManager(FileSystemType type) OVERRIDE; |
| 68 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( | 70 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( |
| 69 FileSystemType type, | 71 FileSystemType type, |
| 70 base::File::Error* error_code) OVERRIDE; | 72 base::File::Error* error_code) OVERRIDE; |
| 71 virtual FileSystemOperation* CreateFileSystemOperation( | 73 virtual FileSystemOperation* CreateFileSystemOperation( |
| 72 const FileSystemURL& url, | 74 const FileSystemURL& url, |
| 73 FileSystemContext* context, | 75 FileSystemContext* context, |
| 74 base::File::Error* error_code) const OVERRIDE; | 76 base::File::Error* error_code) const OVERRIDE; |
| 75 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; | 77 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; |
| 76 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 78 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
| 77 const FileSystemURL& url, | 79 const FileSystemURL& url, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 scoped_ptr<AsyncFileUtil> file_util_; | 138 scoped_ptr<AsyncFileUtil> file_util_; |
| 137 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. | 139 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. |
| 138 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; | 140 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; |
| 139 | 141 |
| 140 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); | 142 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); |
| 141 }; | 143 }; |
| 142 | 144 |
| 143 } // namespace fileapi | 145 } // namespace fileapi |
| 144 | 146 |
| 145 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 147 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |