| 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 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "webkit/browser/fileapi/file_system_backend.h" | 13 #include "webkit/browser/fileapi/file_system_backend.h" |
| 14 #include "webkit/browser/fileapi/file_system_options.h" | 14 #include "webkit/browser/fileapi/file_system_options.h" |
| 15 #include "webkit/browser/fileapi/file_system_quota_util.h" | 15 #include "webkit/browser/fileapi/file_system_quota_util.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace content { |
| 22 class PluginPrivateFileSystemBackendTest; |
| 23 } |
| 24 |
| 21 namespace quota { | 25 namespace quota { |
| 22 class SpecialStoragePolicy; | 26 class SpecialStoragePolicy; |
| 23 } | 27 } |
| 24 | 28 |
| 25 namespace fileapi { | 29 namespace fileapi { |
| 26 | 30 |
| 27 class ObfuscatedFileUtil; | 31 class ObfuscatedFileUtil; |
| 28 | 32 |
| 29 class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend | 33 class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend |
| 30 : public FileSystemBackend, | 34 : public FileSystemBackend, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 FileAccessObserver* observer, | 119 FileAccessObserver* observer, |
| 116 base::SequencedTaskRunner* task_runner) OVERRIDE; | 120 base::SequencedTaskRunner* task_runner) OVERRIDE; |
| 117 virtual const UpdateObserverList* GetUpdateObservers( | 121 virtual const UpdateObserverList* GetUpdateObservers( |
| 118 FileSystemType type) const OVERRIDE; | 122 FileSystemType type) const OVERRIDE; |
| 119 virtual const ChangeObserverList* GetChangeObservers( | 123 virtual const ChangeObserverList* GetChangeObservers( |
| 120 FileSystemType type) const OVERRIDE; | 124 FileSystemType type) const OVERRIDE; |
| 121 virtual const AccessObserverList* GetAccessObservers( | 125 virtual const AccessObserverList* GetAccessObservers( |
| 122 FileSystemType type) const OVERRIDE; | 126 FileSystemType type) const OVERRIDE; |
| 123 | 127 |
| 124 private: | 128 private: |
| 125 friend class PluginPrivateFileSystemBackendTest; | 129 friend class content::PluginPrivateFileSystemBackendTest; |
| 126 | 130 |
| 127 ObfuscatedFileUtil* obfuscated_file_util(); | 131 ObfuscatedFileUtil* obfuscated_file_util(); |
| 128 const base::FilePath& base_path() const { return base_path_; } | 132 const base::FilePath& base_path() const { return base_path_; } |
| 129 | 133 |
| 130 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 134 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
| 131 const FileSystemOptions file_system_options_; | 135 const FileSystemOptions file_system_options_; |
| 132 const base::FilePath base_path_; | 136 const base::FilePath base_path_; |
| 133 scoped_ptr<AsyncFileUtil> file_util_; | 137 scoped_ptr<AsyncFileUtil> file_util_; |
| 134 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. | 138 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. |
| 135 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; | 139 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; |
| 136 | 140 |
| 137 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); | 141 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); |
| 138 }; | 142 }; |
| 139 | 143 |
| 140 } // namespace fileapi | 144 } // namespace fileapi |
| 141 | 145 |
| 142 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 146 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |