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 DraggedFileUtil; | 14 class DraggedFileUtil; |
15 class IsolatedContext; | 15 class IsolatedContext; |
16 class IsolatedFileUtil; | 16 class IsolatedFileUtil; |
17 class MediaPathFilter; | 17 class MediaPathFilter; |
18 class NativeMediaFileUtil; | 18 class NativeMediaFileUtil; |
19 | 19 |
20 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 20 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
21 class DeviceMediaFileUtil; | 21 class DeviceMediaFileUtil; |
22 #endif | 22 #endif |
23 | 23 |
24 class IsolatedMountPointProvider : public FileSystemMountPointProvider { | 24 class IsolatedMountPointProvider : public FileSystemMountPointProvider { |
25 public: | 25 public: |
26 using FileSystemMountPointProvider::ValidateFileSystemCallback; | |
27 using FileSystemMountPointProvider::DeleteFileSystemCallback; | |
28 | |
29 explicit IsolatedMountPointProvider(const FilePath& profile_path); | 26 explicit IsolatedMountPointProvider(const FilePath& profile_path); |
30 virtual ~IsolatedMountPointProvider(); | 27 virtual ~IsolatedMountPointProvider(); |
31 | 28 |
32 // FileSystemMountPointProvider implementation. | 29 // FileSystemMountPointProvider implementation. |
33 virtual void ValidateFileSystemRoot( | 30 virtual void ValidateFileSystemRoot( |
34 const GURL& origin_url, | 31 const GURL& origin_url, |
35 FileSystemType type, | 32 FileSystemType type, |
36 bool create, | 33 bool create, |
37 const ValidateFileSystemCallback& callback) OVERRIDE; | 34 const ValidateFileSystemCallback& callback) OVERRIDE; |
38 virtual FilePath GetFileSystemRootPathOnFileThread( | 35 virtual FilePath GetFileSystemRootPathOnFileThread( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 scoped_ptr<NativeMediaFileUtil> native_media_file_util_; | 71 scoped_ptr<NativeMediaFileUtil> native_media_file_util_; |
75 | 72 |
76 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 73 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
77 scoped_ptr<DeviceMediaFileUtil> device_media_file_util_; | 74 scoped_ptr<DeviceMediaFileUtil> device_media_file_util_; |
78 #endif | 75 #endif |
79 }; | 76 }; |
80 | 77 |
81 } // namespace fileapi | 78 } // namespace fileapi |
82 | 79 |
83 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 80 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |