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_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "webkit/fileapi/file_system_mount_point_provider.h" | 11 #include "webkit/fileapi/file_system_mount_point_provider.h" |
12 | 12 |
13 namespace fileapi { | 13 namespace fileapi { |
14 | 14 |
15 class DraggedFileUtil; | 15 class DraggedFileUtil; |
16 class IsolatedContext; | 16 class IsolatedContext; |
17 class IsolatedFileUtil; | 17 class IsolatedFileUtil; |
18 | 18 |
19 class IsolatedMountPointProvider : public FileSystemMountPointProvider { | 19 class IsolatedMountPointProvider : public FileSystemMountPointProvider { |
20 public: | 20 public: |
21 typedef FileSystemMountPointProvider::ValidateFileSystemCallback | 21 typedef FileSystemMountPointProvider::ValidateFileSystemCallback |
22 ValidateFileSystemCallback; | 22 ValidateFileSystemCallback; |
23 typedef FileSystemMountPointProvider::DeleteFileSystemCallback | |
24 DeleteFileSystemCallback; | |
tzik
2012/07/28 00:36:46
ditto per "using".
nhiroki (google)
2012/07/28 02:01:56
Done.
| |
23 | 25 |
24 IsolatedMountPointProvider(); | 26 IsolatedMountPointProvider(); |
25 virtual ~IsolatedMountPointProvider(); | 27 virtual ~IsolatedMountPointProvider(); |
26 | 28 |
27 // FileSystemMountPointProvider implementation. | 29 // FileSystemMountPointProvider implementation. |
28 virtual void ValidateFileSystemRoot( | 30 virtual void ValidateFileSystemRoot( |
29 const GURL& origin_url, | 31 const GURL& origin_url, |
30 FileSystemType type, | 32 FileSystemType type, |
31 bool create, | 33 bool create, |
32 const ValidateFileSystemCallback& callback) OVERRIDE; | 34 const ValidateFileSystemCallback& callback) OVERRIDE; |
33 virtual FilePath GetFileSystemRootPathOnFileThread( | 35 virtual FilePath GetFileSystemRootPathOnFileThread( |
34 const GURL& origin_url, | 36 const GURL& origin_url, |
35 FileSystemType type, | 37 FileSystemType type, |
36 const FilePath& virtual_path, | 38 const FilePath& virtual_path, |
37 bool create) OVERRIDE; | 39 bool create) OVERRIDE; |
38 virtual bool IsAccessAllowed(const GURL& origin_url, | 40 virtual bool IsAccessAllowed(const GURL& origin_url, |
39 FileSystemType type, | 41 FileSystemType type, |
40 const FilePath& virtual_path) OVERRIDE; | 42 const FilePath& virtual_path) OVERRIDE; |
41 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; | 43 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; |
42 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 44 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
43 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) | 45 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) |
44 const OVERRIDE; | 46 const OVERRIDE; |
45 virtual FileSystemOperationInterface* CreateFileSystemOperation( | 47 virtual FileSystemOperationInterface* CreateFileSystemOperation( |
46 const FileSystemURL& url, | 48 const FileSystemURL& url, |
47 FileSystemContext* context) const OVERRIDE; | 49 FileSystemContext* context) const OVERRIDE; |
48 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( | 50 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( |
49 const FileSystemURL& url, | 51 const FileSystemURL& url, |
50 int64 offset, | 52 int64 offset, |
51 FileSystemContext* context) const OVERRIDE; | 53 FileSystemContext* context) const OVERRIDE; |
52 virtual FileStreamWriter* CreateFileStreamWriter( | 54 virtual FileStreamWriter* CreateFileStreamWriter( |
53 const FileSystemURL& url, | 55 const FileSystemURL& url, |
54 int64 offset, | 56 int64 offset, |
55 FileSystemContext* context) const OVERRIDE; | 57 FileSystemContext* context) const OVERRIDE; |
56 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 58 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
59 virtual void DeleteFileSystem( | |
60 const GURL& origin_url, | |
61 FileSystemType type, | |
62 FileSystemContext* context, | |
63 const DeleteFileSystemCallback& callback) const OVERRIDE; | |
57 | 64 |
58 private: | 65 private: |
59 scoped_ptr<IsolatedFileUtil> isolated_file_util_; | 66 scoped_ptr<IsolatedFileUtil> isolated_file_util_; |
60 scoped_ptr<DraggedFileUtil> dragged_file_util_; | 67 scoped_ptr<DraggedFileUtil> dragged_file_util_; |
61 }; | 68 }; |
62 | 69 |
63 } // namespace fileapi | 70 } // namespace fileapi |
64 | 71 |
65 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 72 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |