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

Side by Side Diff: webkit/fileapi/media/media_file_system_mount_point_provider.h

Issue 14352004: Split Media-related code from IsolatedMountPointProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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) 2013 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_MEDIA_MEDIA_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_MEDIA_MEDIA_FILE_SYSTEM_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;
16 class MediaPathFilter; 15 class MediaPathFilter;
17 16
18 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) 17 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
19 class DeviceMediaAsyncFileUtil; 18 class DeviceMediaAsyncFileUtil;
20 #endif 19 #endif
21 20
22 class IsolatedMountPointProvider : public FileSystemMountPointProvider { 21 class MediaFileSystemMountPointProvider : public FileSystemMountPointProvider {
23 public: 22 public:
24 static const char kMediaPathFilterKey[]; 23 static const char kMediaPathFilterKey[];
25 static const char kMTPDeviceDelegateURLKey[]; 24 static const char kMTPDeviceDelegateURLKey[];
26 25
27 explicit IsolatedMountPointProvider(const base::FilePath& profile_path); 26 explicit MediaFileSystemMountPointProvider(
28 virtual ~IsolatedMountPointProvider(); 27 const base::FilePath& profile_path);
28 virtual ~MediaFileSystemMountPointProvider();
29 29
30 // FileSystemMountPointProvider implementation. 30 // FileSystemMountPointProvider implementation.
31 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; 31 virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
32 virtual void ValidateFileSystemRoot( 32 virtual void ValidateFileSystemRoot(
33 const GURL& origin_url, 33 const GURL& origin_url,
34 FileSystemType type, 34 FileSystemType type,
35 bool create, 35 bool create,
36 const ValidateFileSystemCallback& callback) OVERRIDE; 36 const ValidateFileSystemCallback& callback) OVERRIDE;
37 virtual base::FilePath GetFileSystemRootPathOnFileThread( 37 virtual base::FilePath GetFileSystemRootPathOnFileThread(
38 const FileSystemURL& url, 38 const FileSystemURL& url,
(...skipping 30 matching lines...) Expand all
69 const DeleteFileSystemCallback& callback) OVERRIDE; 69 const DeleteFileSystemCallback& callback) OVERRIDE;
70 70
71 private: 71 private:
72 // Store the profile path. We need this to create temporary snapshot files. 72 // Store the profile path. We need this to create temporary snapshot files.
73 const base::FilePath profile_path_; 73 const base::FilePath profile_path_;
74 74
75 scoped_ptr<MediaPathFilter> media_path_filter_; 75 scoped_ptr<MediaPathFilter> media_path_filter_;
76 scoped_ptr<CopyOrMoveFileValidatorFactory> 76 scoped_ptr<CopyOrMoveFileValidatorFactory>
77 media_copy_or_move_file_validator_factory_; 77 media_copy_or_move_file_validator_factory_;
78 78
79 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_;
80 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_;
81 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_; 79 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_;
82
83 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) 80 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
84 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; 81 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
85 #endif 82 #endif
83
84 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemMountPointProvider);
86 }; 85 };
87 86
88 } // namespace fileapi 87 } // namespace fileapi
89 88
90 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 89 #endif // WEBKIT_FILEAPI_MEDIA_MEDIA_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/media/device_media_async_file_util.cc ('k') | webkit/fileapi/media/media_file_system_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698