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

Unified Diff: webkit/fileapi/media/native_media_file_util.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
« no previous file with comments | « webkit/fileapi/media/mtp_device_map_service.cc ('k') | webkit/fileapi/media/native_media_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/media/native_media_file_util.h
diff --git a/webkit/fileapi/media/native_media_file_util.h b/webkit/fileapi/media/native_media_file_util.h
deleted file mode 100644
index 0b957c3f28b94aae5ce6bba3e116fd8e169dd207..0000000000000000000000000000000000000000
--- a/webkit/fileapi/media/native_media_file_util.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) 2012 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_NATIVE_MEDIA_FILE_UTIL_H_
-#define WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "webkit/fileapi/isolated_file_util.h"
-#include "webkit/storage/webkit_storage_export.h"
-
-namespace fileapi {
-
-// This class handles native file system operations with media type filtering
-// which is passed to each method via FileSystemOperationContext as
-// MediaPathFilter.
-class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil
- : public IsolatedFileUtil {
- public:
- NativeMediaFileUtil();
-
- virtual base::PlatformFileError CreateOrOpen(
- FileSystemOperationContext* context,
- const FileSystemURL& url,
- int file_flags,
- base::PlatformFile* file_handle,
- bool* created) OVERRIDE;
- virtual base::PlatformFileError EnsureFileExists(
- FileSystemOperationContext* context,
- const FileSystemURL& url, bool* created) OVERRIDE;
- virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator(
- FileSystemOperationContext* context,
- const FileSystemURL& root_url) OVERRIDE;
- virtual base::PlatformFileError Touch(
- FileSystemOperationContext* context,
- const FileSystemURL& url,
- const base::Time& last_access_time,
- const base::Time& last_modified_time) OVERRIDE;
- virtual base::PlatformFileError Truncate(
- FileSystemOperationContext* context,
- const FileSystemURL& url,
- int64 length) OVERRIDE;
- virtual base::PlatformFileError CopyOrMoveFile(
- FileSystemOperationContext* context,
- const FileSystemURL& src_url,
- const FileSystemURL& dest_url,
- bool copy) OVERRIDE;
- virtual base::PlatformFileError CopyInForeignFile(
- FileSystemOperationContext* context,
- const base::FilePath& src_file_path,
- const FileSystemURL& dest_url) OVERRIDE;
- virtual base::PlatformFileError DeleteFile(
- FileSystemOperationContext* context,
- const FileSystemURL& url) OVERRIDE;
- virtual base::PlatformFileError GetFileInfo(
- FileSystemOperationContext* context,
- const FileSystemURL& url,
- base::PlatformFileInfo* file_info,
- base::FilePath* platform_path) OVERRIDE;
-
- private:
- // Like GetLocalFilePath(), but always take media_path_filter() into
- // consideration. If the media_path_filter() check fails, return
- // PLATFORM_FILE_ERROR_SECURITY. |local_file_path| does not have to exist.
- base::PlatformFileError GetFilteredLocalFilePath(
- FileSystemOperationContext* context,
- const FileSystemURL& file_system_url,
- base::FilePath* local_file_path);
-
- // Like GetLocalFilePath(), but if the file does not exist, then return
- // |failure_error|.
- // If |local_file_path| is a file, then take media_path_filter() into
- // consideration.
- // If the media_path_filter() check fails, return |failure_error|.
- // If |local_file_path| is a directory, return PLATFORM_FILE_OK.
- base::PlatformFileError GetFilteredLocalFilePathForExistingFileOrDirectory(
- FileSystemOperationContext* context,
- const FileSystemURL& file_system_url,
- base::PlatformFileError failure_error,
- base::FilePath* local_file_path);
-
- DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil);
-};
-
-} // namespace fileapi
-
-#endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_
« no previous file with comments | « webkit/fileapi/media/mtp_device_map_service.cc ('k') | webkit/fileapi/media/native_media_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698