| 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_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual bool HasFileSystemType(FileSystemType type) const = 0; | 66 virtual bool HasFileSystemType(FileSystemType type) const = 0; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 SandboxFileSystemBackend( | 69 SandboxFileSystemBackend( |
| 70 SandboxContext* sandbox_context, | 70 SandboxContext* sandbox_context, |
| 71 const FileSystemOptions& file_system_options); | 71 const FileSystemOptions& file_system_options); |
| 72 virtual ~SandboxFileSystemBackend(); | 72 virtual ~SandboxFileSystemBackend(); |
| 73 | 73 |
| 74 // FileSystemBackend overrides. | 74 // FileSystemBackend overrides. |
| 75 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; | 75 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
| 76 virtual void Initialize(const FileSystemContext* context) OVERRIDE; |
| 76 virtual void InitializeFileSystem( | 77 virtual void InitializeFileSystem( |
| 77 const GURL& origin_url, | 78 const GURL& origin_url, |
| 78 FileSystemType type, | 79 FileSystemType type, |
| 79 OpenFileSystemMode mode, | 80 OpenFileSystemMode mode, |
| 80 FileSystemContext* context, | 81 FileSystemContext* context, |
| 81 const InitializeFileSystemCallback& callback) OVERRIDE; | 82 const InitializeFileSystemCallback& callback) OVERRIDE; |
| 82 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 83 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
| 83 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 84 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; |
| 84 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( | 85 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( |
| 85 FileSystemType type, | 86 FileSystemType type, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 bool enable_usage_tracking_; | 229 bool enable_usage_tracking_; |
| 229 | 230 |
| 230 base::WeakPtrFactory<SandboxFileSystemBackend> weak_factory_; | 231 base::WeakPtrFactory<SandboxFileSystemBackend> weak_factory_; |
| 231 | 232 |
| 232 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend); | 233 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend); |
| 233 }; | 234 }; |
| 234 | 235 |
| 235 } // namespace fileapi | 236 } // namespace fileapi |
| 236 | 237 |
| 237 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ | 238 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |