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_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_BROWSER_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/files/file_path.h" | 13 #include "base/files/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/browser/fileapi/file_system_mount_point_provider.h" | 18 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
19 #include "webkit/browser/fileapi/file_system_options.h" | 19 #include "webkit/browser/fileapi/file_system_options.h" |
20 #include "webkit/browser/fileapi/file_system_quota_util.h" | 20 #include "webkit/browser/fileapi/file_system_quota_util.h" |
21 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" | 21 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" |
22 #include "webkit/browser/quota/special_storage_policy.h" | 22 #include "webkit/browser/quota/special_storage_policy.h" |
23 #include "webkit/storage/webkit_storage_export.h" | 23 #include "webkit/browser/webkit_storage_browser_export.h" |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class SequencedTaskRunner; | 26 class SequencedTaskRunner; |
27 } | 27 } |
28 | 28 |
29 namespace quota { | 29 namespace quota { |
30 class QuotaManagerProxy; | 30 class QuotaManagerProxy; |
31 class SpecialStoragePolicy; | 31 class SpecialStoragePolicy; |
32 } | 32 } |
33 | 33 |
34 namespace sync_file_system { | 34 namespace sync_file_system { |
35 class CannedSyncableFileSystem; | 35 class CannedSyncableFileSystem; |
36 class SyncableFileSystemOperation; | 36 class SyncableFileSystemOperation; |
37 } | 37 } |
38 | 38 |
39 namespace fileapi { | 39 namespace fileapi { |
40 | 40 |
41 class AsyncFileUtilAdapter; | 41 class AsyncFileUtilAdapter; |
42 class FileSystemUsageCache; | 42 class FileSystemUsageCache; |
43 class LocalFileSystemOperation; | 43 class LocalFileSystemOperation; |
44 class ObfuscatedFileUtil; | 44 class ObfuscatedFileUtil; |
45 class SandboxQuotaObserver; | 45 class SandboxQuotaObserver; |
46 | 46 |
47 // An interface to construct or crack sandboxed filesystem paths for | 47 // An interface to construct or crack sandboxed filesystem paths for |
48 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's | 48 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's |
49 // profile directory in a sandboxed way. | 49 // profile directory in a sandboxed way. |
50 // This interface also lets one enumerate and remove storage for the origins | 50 // This interface also lets one enumerate and remove storage for the origins |
51 // that use the filesystem. | 51 // that use the filesystem. |
52 class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider | 52 class WEBKIT_STORAGE_BROWSER_EXPORT SandboxMountPointProvider |
53 : public FileSystemMountPointProvider, | 53 : public FileSystemMountPointProvider, |
54 public FileSystemQuotaUtil { | 54 public FileSystemQuotaUtil { |
55 public: | 55 public: |
56 // Origin enumerator interface. | 56 // Origin enumerator interface. |
57 // An instance of this interface is assumed to be called on the file thread. | 57 // An instance of this interface is assumed to be called on the file thread. |
58 class OriginEnumerator { | 58 class OriginEnumerator { |
59 public: | 59 public: |
60 virtual ~OriginEnumerator() {} | 60 virtual ~OriginEnumerator() {} |
61 | 61 |
62 // Returns the next origin. Returns empty if there are no more origins. | 62 // Returns the next origin. Returns empty if there are no more origins. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 249 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
250 | 250 |
251 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; | 251 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 253 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace fileapi | 256 } // namespace fileapi |
257 | 257 |
258 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 258 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |