| 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_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "webkit/fileapi/fileapi_export.h" | |
| 19 #include "webkit/fileapi/file_system_mount_point_provider.h" | 18 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 20 #include "webkit/fileapi/file_system_options.h" | 19 #include "webkit/fileapi/file_system_options.h" |
| 21 #include "webkit/fileapi/file_system_quota_util.h" | 20 #include "webkit/fileapi/file_system_quota_util.h" |
| 22 #include "webkit/fileapi/task_runner_bound_observer_list.h" | 21 #include "webkit/fileapi/task_runner_bound_observer_list.h" |
| 22 #include "webkit/storage/webkit_storage_export.h" |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class SequencedTaskRunner; | 25 class SequencedTaskRunner; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace quota { | 28 namespace quota { |
| 29 class QuotaManagerProxy; | 29 class QuotaManagerProxy; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace fileapi { | 32 namespace fileapi { |
| 33 | 33 |
| 34 class ObfuscatedFileUtil; | 34 class ObfuscatedFileUtil; |
| 35 class SandboxQuotaObserver; | 35 class SandboxQuotaObserver; |
| 36 | 36 |
| 37 // An interface to construct or crack sandboxed filesystem paths for | 37 // An interface to construct or crack sandboxed filesystem paths for |
| 38 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's | 38 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's |
| 39 // profile directory in a sandboxed way. | 39 // profile directory in a sandboxed way. |
| 40 // This interface also lets one enumerate and remove storage for the origins | 40 // This interface also lets one enumerate and remove storage for the origins |
| 41 // that use the filesystem. | 41 // that use the filesystem. |
| 42 class FILEAPI_EXPORT SandboxMountPointProvider | 42 class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider |
| 43 : public FileSystemMountPointProvider, | 43 : public FileSystemMountPointProvider, |
| 44 public FileSystemQuotaUtil { | 44 public FileSystemQuotaUtil { |
| 45 public: | 45 public: |
| 46 using FileSystemMountPointProvider::ValidateFileSystemCallback; | 46 using FileSystemMountPointProvider::ValidateFileSystemCallback; |
| 47 using FileSystemMountPointProvider::DeleteFileSystemCallback; | 47 using FileSystemMountPointProvider::DeleteFileSystemCallback; |
| 48 | 48 |
| 49 // Origin enumerator interface. | 49 // Origin enumerator interface. |
| 50 // An instance of this interface is assumed to be called on the file thread. | 50 // An instance of this interface is assumed to be called on the file thread. |
| 51 class OriginEnumerator { | 51 class OriginEnumerator { |
| 52 public: | 52 public: |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 base::Time next_release_time_for_open_filesystem_stat_; | 210 base::Time next_release_time_for_open_filesystem_stat_; |
| 211 | 211 |
| 212 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; | 212 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; |
| 213 | 213 |
| 214 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 214 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace fileapi | 217 } // namespace fileapi |
| 218 | 218 |
| 219 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 219 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |