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 static const char kMediaPathFilterKey[]; |
| 25 static const char kMTPDeviceDelegateURLKey[]; |
| 26 |
24 explicit IsolatedMountPointProvider(const base::FilePath& profile_path); | 27 explicit IsolatedMountPointProvider(const base::FilePath& profile_path); |
25 virtual ~IsolatedMountPointProvider(); | 28 virtual ~IsolatedMountPointProvider(); |
26 | 29 |
27 // FileSystemMountPointProvider implementation. | 30 // FileSystemMountPointProvider implementation. |
28 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; | 31 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
29 virtual void ValidateFileSystemRoot( | 32 virtual void ValidateFileSystemRoot( |
30 const GURL& origin_url, | 33 const GURL& origin_url, |
31 FileSystemType type, | 34 FileSystemType type, |
32 bool create, | 35 bool create, |
33 const ValidateFileSystemCallback& callback) OVERRIDE; | 36 const ValidateFileSystemCallback& callback) OVERRIDE; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_; | 81 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_; |
79 | 82 |
80 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 83 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
81 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; | 84 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; |
82 #endif | 85 #endif |
83 }; | 86 }; |
84 | 87 |
85 } // namespace fileapi | 88 } // namespace fileapi |
86 | 89 |
87 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 90 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |