| 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 WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // Regular mount point providers. | 187 // Regular mount point providers. |
| 188 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; | 188 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; |
| 189 scoped_ptr<IsolatedMountPointProvider> isolated_provider_; | 189 scoped_ptr<IsolatedMountPointProvider> isolated_provider_; |
| 190 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; | 190 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; |
| 191 | 191 |
| 192 // Registered mount point providers. | 192 // Registered mount point providers. |
| 193 std::map<FileSystemType, FileSystemMountPointProvider*> provider_map_; | 193 std::map<FileSystemType, FileSystemMountPointProvider*> provider_map_; |
| 194 | 194 |
| 195 // The base path of the storage partition for this context. | 195 // The base path of the storage partition for this context. |
| 196 const FilePath& partition_path_; | 196 const FilePath partition_path_; |
| 197 | 197 |
| 198 // For syncable file systems. | 198 // For syncable file systems. |
| 199 scoped_ptr<LocalFileChangeTracker> change_tracker_; | 199 scoped_ptr<LocalFileChangeTracker> change_tracker_; |
| 200 scoped_refptr<LocalFileSyncContext> sync_context_; | 200 scoped_refptr<LocalFileSyncContext> sync_context_; |
| 201 | 201 |
| 202 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemContext); | 202 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemContext); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 struct DefaultContextDeleter { | 205 struct DefaultContextDeleter { |
| 206 static void Destruct(const FileSystemContext* context) { | 206 static void Destruct(const FileSystemContext* context) { |
| 207 context->DeleteOnCorrectThread(); | 207 context->DeleteOnCorrectThread(); |
| 208 } | 208 } |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace fileapi | 211 } // namespace fileapi |
| 212 | 212 |
| 213 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 213 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |