Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: webkit/fileapi/isolated_mount_point_provider.h

Issue 14341004: FileAPI code should not rely on or assume specific MountPointProvider types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation_context.cc ('k') | webkit/fileapi/isolated_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698