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> |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // An interface to construct or crack sandboxed filesystem paths for | 38 // An interface to construct or crack sandboxed filesystem paths for |
39 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's | 39 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's |
40 // profile directory in a sandboxed way. | 40 // profile directory in a sandboxed way. |
41 // This interface also lets one enumerate and remove storage for the origins | 41 // This interface also lets one enumerate and remove storage for the origins |
42 // that use the filesystem. | 42 // that use the filesystem. |
43 class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider | 43 class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider |
44 : public FileSystemMountPointProvider, | 44 : public FileSystemMountPointProvider, |
45 public FileSystemQuotaUtil { | 45 public FileSystemQuotaUtil { |
46 public: | 46 public: |
47 using FileSystemMountPointProvider::ValidateFileSystemCallback; | |
48 using FileSystemMountPointProvider::DeleteFileSystemCallback; | |
49 | |
50 // Origin enumerator interface. | 47 // Origin enumerator interface. |
51 // An instance of this interface is assumed to be called on the file thread. | 48 // An instance of this interface is assumed to be called on the file thread. |
52 class OriginEnumerator { | 49 class OriginEnumerator { |
53 public: | 50 public: |
54 virtual ~OriginEnumerator() {} | 51 virtual ~OriginEnumerator() {} |
55 | 52 |
56 // Returns the next origin. Returns empty if there are no more origins. | 53 // Returns the next origin. Returns empty if there are no more origins. |
57 virtual GURL Next() = 0; | 54 virtual GURL Next() = 0; |
58 | 55 |
59 // Returns the current origin's information. | 56 // Returns the current origin's information. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 bool enable_sync_directory_operation_; | 227 bool enable_sync_directory_operation_; |
231 | 228 |
232 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; | 229 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; |
233 | 230 |
234 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 231 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
235 }; | 232 }; |
236 | 233 |
237 } // namespace fileapi | 234 } // namespace fileapi |
238 | 235 |
239 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 236 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |