Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | |
| 6 #define WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | |
| 7 | |
| 8 #include "webkit/fileapi/fileapi_export.h" | |
| 9 #include "webkit/fileapi/isolated_file_util.h" | |
| 10 | |
| 11 namespace fileapi { | |
| 12 | |
| 13 class FILEAPI_EXPORT_PRIVATE NativeMediaFileUtil : public IsolatedFileUtil { | |
|
kinuko
2012/07/28 01:23:35
Please add class-level comment!
tzik
2012/07/30 23:32:36
Done.
| |
| 14 public: | |
| 15 NativeMediaFileUtil(); | |
| 16 | |
| 17 virtual PlatformFileError CreateOrOpen( | |
| 18 FileSystemOperationContext* context, | |
| 19 const FileSystemURL& url, | |
| 20 int file_flags, | |
| 21 PlatformFile* file_handle, | |
| 22 bool* created) OVERRIDE; | |
| 23 virtual PlatformFileError EnsureFileExists( | |
| 24 FileSystemOperationContext* context, | |
| 25 const FileSystemURL& url, bool* created) OVERRIDE; | |
| 26 virtual AbstractFileEnumerator* CreateFileEnumerator( | |
| 27 FileSystemOperationContext* context, | |
| 28 const FileSystemURL& root_url, | |
| 29 bool recursive) OVERRIDE; | |
| 30 virtual PlatformFileError Touch( | |
| 31 FileSystemOperationContext* context, | |
| 32 const FileSystemURL& url, | |
| 33 const base::Time& last_access_time, | |
| 34 const base::Time& last_modified_time) OVERRIDE; | |
| 35 virtual PlatformFileError Truncate( | |
| 36 FileSystemOperationContext* context, | |
| 37 const FileSystemURL& url, | |
| 38 int64 length) OVERRIDE; | |
| 39 virtual bool PathExists( | |
| 40 FileSystemOperationContext* context, | |
| 41 const FileSystemURL& url) OVERRIDE; | |
| 42 virtual bool IsDirectoryEmpty( | |
| 43 FileSystemOperationContext* context, | |
| 44 const FileSystemURL& url) OVERRIDE; | |
| 45 virtual PlatformFileError CopyOrMoveFile( | |
| 46 FileSystemOperationContext* context, | |
| 47 const FileSystemURL& src_url, | |
| 48 const FileSystemURL& dest_url, | |
| 49 bool copy) OVERRIDE; | |
| 50 virtual PlatformFileError CopyInForeignFile( | |
| 51 FileSystemOperationContext* context, | |
| 52 const FilePath& src_file_path, | |
| 53 const FileSystemURL& dest_url) OVERRIDE; | |
| 54 virtual PlatformFileError DeleteFile( | |
| 55 FileSystemOperationContext* context, | |
| 56 const FileSystemURL& url) OVERRIDE; | |
| 57 virtual PlatformFileError GetFileInfo( | |
| 58 FileSystemOperationContext* context, | |
| 59 const FileSystemURL& url, | |
| 60 base::PlatformFileInfo* file_info, | |
| 61 FilePath* platform_path) OVERRIDE; | |
| 62 | |
| 63 private: | |
| 64 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); | |
| 65 }; | |
| 66 | |
| 67 } // namespace fileapi | |
| 68 | |
| 69 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | |
| OLD | NEW |