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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "webkit/fileapi/file_system_mount_point_provider.h" | 9 #include "webkit/fileapi/file_system_mount_point_provider.h" |
10 #include "webkit/fileapi/media/mtp_device_file_system_config.h" | 10 #include "webkit/fileapi/media/mtp_device_file_system_config.h" |
11 | 11 |
12 namespace fileapi { | 12 namespace fileapi { |
13 | 13 |
14 class AsyncFileUtilAdapter; | 14 class AsyncFileUtilAdapter; |
15 class IsolatedContext; | 15 class IsolatedContext; |
16 class MediaPathFilter; | 16 class MediaPathFilter; |
17 | 17 |
18 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 18 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
19 class DeviceMediaAsyncFileUtil; | 19 class DeviceMediaAsyncFileUtil; |
20 #endif | 20 #endif |
21 | 21 |
22 class IsolatedMountPointProvider : public FileSystemMountPointProvider { | 22 class IsolatedMountPointProvider : public FileSystemMountPointProvider { |
23 public: | 23 public: |
24 explicit IsolatedMountPointProvider(const base::FilePath& profile_path); | 24 explicit IsolatedMountPointProvider(const base::FilePath& profile_path); |
25 virtual ~IsolatedMountPointProvider(); | 25 virtual ~IsolatedMountPointProvider(); |
26 | 26 |
27 // FileSystemMountPointProvider implementation. | 27 // FileSystemMountPointProvider implementation. |
| 28 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
28 virtual void ValidateFileSystemRoot( | 29 virtual void ValidateFileSystemRoot( |
29 const GURL& origin_url, | 30 const GURL& origin_url, |
30 FileSystemType type, | 31 FileSystemType type, |
31 bool create, | 32 bool create, |
32 const ValidateFileSystemCallback& callback) OVERRIDE; | 33 const ValidateFileSystemCallback& callback) OVERRIDE; |
33 virtual base::FilePath GetFileSystemRootPathOnFileThread( | 34 virtual base::FilePath GetFileSystemRootPathOnFileThread( |
34 const FileSystemURL& url, | 35 const FileSystemURL& url, |
35 bool create) OVERRIDE; | 36 bool create) OVERRIDE; |
36 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 37 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
37 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 38 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_; | 78 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_; |
78 | 79 |
79 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 80 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
80 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; | 81 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; |
81 #endif | 82 #endif |
82 }; | 83 }; |
83 | 84 |
84 } // namespace fileapi | 85 } // namespace fileapi |
85 | 86 |
86 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 87 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |