Chromium Code Reviews| Index: webkit/fileapi/media/local_media_file_util.h |
| diff --git a/webkit/fileapi/media/local_media_file_util.h b/webkit/fileapi/media/local_media_file_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d4d832fc0ed47be16bea4550f603661e1536134d |
| --- /dev/null |
| +++ b/webkit/fileapi/media/local_media_file_util.h |
| @@ -0,0 +1,83 @@ |
| +// 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_LOCAL_MEDIA_FILE_UTIL_H_ |
| +#define WEBKIT_FILEAPI_MEDIA_LOCAL_MEDIA_FILE_UTIL_H_ |
| + |
| +#include "webkit/fileapi/fileapi_export.h" |
| +#include "webkit/fileapi/isolated_file_util.h" |
| + |
| +namespace fileapi { |
| + |
| +class FILEAPI_EXPORT_PRIVATE LocalMediaFileUtil : public IsolatedFileUtil { |
| + public: |
| + LocalMediaFileUtil(); |
| + |
| + virtual PlatformFileError CreateOrOpen( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url, |
| + int file_flags, |
| + PlatformFile* file_handle, |
| + bool* created) OVERRIDE; |
| + |
|
kinuko
2012/07/26 20:21:56
style-nit: please remove empty lines between virtu
tzik
2012/07/27 17:18:56
Done.
|
| + virtual PlatformFileError EnsureFileExists( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url, bool* created) OVERRIDE; |
| + |
| + virtual AbstractFileEnumerator* CreateFileEnumerator( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& root_url, |
| + bool recursive) OVERRIDE; |
| + |
| + virtual PlatformFileError Touch( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url, |
| + const base::Time& last_access_time, |
| + const base::Time& last_modified_time) OVERRIDE; |
| + |
| + virtual PlatformFileError Truncate( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url, |
| + int64 length) OVERRIDE; |
| + |
| + virtual bool PathExists( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url) OVERRIDE; |
| + |
| + virtual bool IsDirectoryEmpty( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url) OVERRIDE; |
| + |
| + virtual PlatformFileError CopyOrMoveFile( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& src_url, |
| + const FileSystemURL& dest_url, |
| + bool copy) OVERRIDE; |
| + |
| + virtual PlatformFileError CopyInForeignFile( |
| + FileSystemOperationContext* context, |
| + const FilePath& src_file_path, |
| + const FileSystemURL& dest_url) OVERRIDE; |
| + |
| + virtual PlatformFileError DeleteFile( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url) OVERRIDE; |
| + |
| + virtual PlatformFileError GetFileInfo( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url, |
| + base::PlatformFileInfo* file_info, |
| + FilePath* platform_path) OVERRIDE; |
| + |
| + virtual scoped_refptr<webkit_blob::ShareableFileReference> CreateSnapshotFile( |
| + FileSystemOperationContext* context, |
| + const FileSystemURL& url, |
| + base::PlatformFileError* result, |
| + base::PlatformFileInfo* file_info, |
| + FilePath* platform_path) OVERRIDE; |
| +}; |
| + |
| +} // namespace fileapi |
| + |
| +#endif // WEBKIT_FILEAPI_MEDIA_LOCAL_MEDIA_FILE_UTIL_H_ |