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_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | 9 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
10 | 10 |
11 namespace fileapi { | 11 namespace fileapi { |
12 | 12 |
13 class AsyncFileUtilAdapter; | 13 class AsyncFileUtilAdapter; |
14 | 14 |
15 class IsolatedMountPointProvider : public FileSystemMountPointProvider { | 15 class IsolatedMountPointProvider : public FileSystemMountPointProvider { |
16 public: | 16 public: |
17 IsolatedMountPointProvider(); | 17 IsolatedMountPointProvider(); |
18 virtual ~IsolatedMountPointProvider(); | 18 virtual ~IsolatedMountPointProvider(); |
19 | 19 |
20 // FileSystemMountPointProvider implementation. | 20 // FileSystemMountPointProvider implementation. |
21 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; | 21 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
| 22 virtual GURL GetRootURI(const GURL& origin_url, |
| 23 FileSystemType type) const OVERRIDE; |
22 virtual void OpenFileSystem( | 24 virtual void OpenFileSystem( |
23 const GURL& origin_url, | 25 const GURL& origin_url, |
24 FileSystemType type, | 26 FileSystemType type, |
25 OpenFileSystemMode mode, | 27 OpenFileSystemMode mode, |
26 const OpenFileSystemCallback& callback) OVERRIDE; | 28 const OpenFileSystemCallback& callback) OVERRIDE; |
27 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 29 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
28 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 30 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; |
29 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( | 31 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( |
30 FileSystemType type, | 32 FileSystemType type, |
31 base::PlatformFileError* error_code) OVERRIDE; | 33 base::PlatformFileError* error_code) OVERRIDE; |
32 virtual FileSystemOperation* CreateFileSystemOperation( | 34 virtual FileSystemOperation* CreateFileSystemOperation( |
33 const FileSystemURL& url, | 35 const FileSystemURL& url, |
34 FileSystemContext* context, | 36 FileSystemContext* context, |
35 base::PlatformFileError* error_code) const OVERRIDE; | 37 base::PlatformFileError* error_code) const OVERRIDE; |
36 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 38 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
37 const FileSystemURL& url, | 39 const FileSystemURL& url, |
38 int64 offset, | 40 int64 offset, |
39 const base::Time& expected_modification_time, | 41 const base::Time& expected_modification_time, |
40 FileSystemContext* context) const OVERRIDE; | 42 FileSystemContext* context) const OVERRIDE; |
41 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( | 43 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( |
42 const FileSystemURL& url, | 44 const FileSystemURL& url, |
43 int64 offset, | 45 int64 offset, |
44 FileSystemContext* context) const OVERRIDE; | 46 FileSystemContext* context) const OVERRIDE; |
45 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 47 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 48 virtual const UpdateObserverList* GetUpdateObservers( |
| 49 FileSystemType type) const OVERRIDE; |
46 | 50 |
47 private: | 51 private: |
48 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_; | 52 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_; |
49 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_; | 53 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_; |
50 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_; | 54 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_; |
51 }; | 55 }; |
52 | 56 |
53 } // namespace fileapi | 57 } // namespace fileapi |
54 | 58 |
55 #endif // WEBKIT_BROWSER_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 59 #endif // WEBKIT_BROWSER_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |