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

Unified Diff: webkit/fileapi/media/media_file_system_mount_point_provider.h

Issue 14247034: Move Media Galleries FileAPI code out of webkit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cr-14352004
Patch Set: Add android ifdef. 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 side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/media/media_file_system_mount_point_provider.h
diff --git a/webkit/fileapi/media/media_file_system_mount_point_provider.h b/webkit/fileapi/media/media_file_system_mount_point_provider.h
deleted file mode 100644
index 03135dd6e271f0660662376d25011a65eaaa9b1b..0000000000000000000000000000000000000000
--- a/webkit/fileapi/media/media_file_system_mount_point_provider.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_FILEAPI_MEDIA_MEDIA_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
-#define WEBKIT_FILEAPI_MEDIA_MEDIA_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "webkit/fileapi/file_system_mount_point_provider.h"
-#include "webkit/fileapi/media/mtp_device_file_system_config.h"
-
-namespace fileapi {
-
-class AsyncFileUtilAdapter;
-class MediaPathFilter;
-
-#if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
-class DeviceMediaAsyncFileUtil;
-#endif
-
-class MediaFileSystemMountPointProvider : public FileSystemMountPointProvider {
- public:
- static const char kMediaPathFilterKey[];
- static const char kMTPDeviceDelegateURLKey[];
-
- explicit MediaFileSystemMountPointProvider(
- const base::FilePath& profile_path);
- virtual ~MediaFileSystemMountPointProvider();
-
- // FileSystemMountPointProvider implementation.
- virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
- virtual void ValidateFileSystemRoot(
- const GURL& origin_url,
- FileSystemType type,
- bool create,
- const ValidateFileSystemCallback& callback) OVERRIDE;
- virtual base::FilePath GetFileSystemRootPathOnFileThread(
- const FileSystemURL& url,
- bool create) OVERRIDE;
- virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
- virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
- virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
- FileSystemType type,
- base::PlatformFileError* error_code) OVERRIDE;
- virtual void InitializeCopyOrMoveFileValidatorFactory(
- FileSystemType type,
- scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE;
- virtual FilePermissionPolicy GetPermissionPolicy(
- const FileSystemURL& url,
- int permissions) const OVERRIDE;
- virtual FileSystemOperation* CreateFileSystemOperation(
- const FileSystemURL& url,
- FileSystemContext* context,
- base::PlatformFileError* error_code) const OVERRIDE;
- virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
- const FileSystemURL& url,
- int64 offset,
- const base::Time& expected_modification_time,
- FileSystemContext* context) const OVERRIDE;
- virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
- const FileSystemURL& url,
- int64 offset,
- FileSystemContext* context) const OVERRIDE;
- virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
- virtual void DeleteFileSystem(
- const GURL& origin_url,
- FileSystemType type,
- FileSystemContext* context,
- const DeleteFileSystemCallback& callback) OVERRIDE;
-
- private:
- // Store the profile path. We need this to create temporary snapshot files.
- const base::FilePath profile_path_;
-
- scoped_ptr<MediaPathFilter> media_path_filter_;
- scoped_ptr<CopyOrMoveFileValidatorFactory>
- media_copy_or_move_file_validator_factory_;
-
- scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_;
-#if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
- scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(MediaFileSystemMountPointProvider);
-};
-
-} // namespace fileapi
-
-#endif // WEBKIT_FILEAPI_MEDIA_MEDIA_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
« no previous file with comments | « webkit/fileapi/media/filtering_file_enumerator.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