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> | |
9 | |
10 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
11 #include "webkit/fileapi/file_system_mount_point_provider.h" | 9 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 10 #include "webkit/fileapi/media/media_file_system_config.h" |
12 | 11 |
13 namespace fileapi { | 12 namespace fileapi { |
14 | 13 |
15 class DraggedFileUtil; | 14 class DraggedFileUtil; |
16 class IsolatedContext; | 15 class IsolatedContext; |
17 class IsolatedFileUtil; | 16 class IsolatedFileUtil; |
18 | 17 |
| 18 #if defined(SUPPORT_MEDIA_FILESYSTEM) |
| 19 class DeviceMediaFileUtil; |
| 20 #endif |
| 21 |
19 class IsolatedMountPointProvider : public FileSystemMountPointProvider { | 22 class IsolatedMountPointProvider : public FileSystemMountPointProvider { |
20 public: | 23 public: |
21 typedef FileSystemMountPointProvider::ValidateFileSystemCallback | 24 typedef FileSystemMountPointProvider::ValidateFileSystemCallback |
22 ValidateFileSystemCallback; | 25 ValidateFileSystemCallback; |
23 | 26 |
24 IsolatedMountPointProvider(); | 27 IsolatedMountPointProvider(); |
25 virtual ~IsolatedMountPointProvider(); | 28 virtual ~IsolatedMountPointProvider(); |
26 | 29 |
27 // FileSystemMountPointProvider implementation. | 30 // FileSystemMountPointProvider implementation. |
28 virtual void ValidateFileSystemRoot( | 31 virtual void ValidateFileSystemRoot( |
(...skipping 22 matching lines...) Expand all Loading... |
51 FileSystemContext* context) const OVERRIDE; | 54 FileSystemContext* context) const OVERRIDE; |
52 virtual FileStreamWriter* CreateFileStreamWriter( | 55 virtual FileStreamWriter* CreateFileStreamWriter( |
53 const FileSystemURL& url, | 56 const FileSystemURL& url, |
54 int64 offset, | 57 int64 offset, |
55 FileSystemContext* context) const OVERRIDE; | 58 FileSystemContext* context) const OVERRIDE; |
56 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 59 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
57 | 60 |
58 private: | 61 private: |
59 scoped_ptr<IsolatedFileUtil> isolated_file_util_; | 62 scoped_ptr<IsolatedFileUtil> isolated_file_util_; |
60 scoped_ptr<DraggedFileUtil> dragged_file_util_; | 63 scoped_ptr<DraggedFileUtil> dragged_file_util_; |
| 64 |
| 65 #if defined(SUPPORT_MEDIA_FILESYSTEM) |
| 66 scoped_ptr<DeviceMediaFileUtil> device_media_file_util_; |
| 67 #endif |
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 |