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_LOCAL_MEDIA_FILE_UTIL_H_ | |
| 6 #define WEBKIT_FILEAPI_MEDIA_LOCAL_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 LocalMediaFileUtil : public IsolatedFileUtil { | |
| 14 public: | |
| 15 LocalMediaFileUtil(); | |
| 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 | |
|
kinuko
2012/07/26 20:21:56
style-nit: please remove empty lines between virtu
tzik
2012/07/27 17:18:56
Done.
| |
| 24 virtual PlatformFileError EnsureFileExists( | |
| 25 FileSystemOperationContext* context, | |
| 26 const FileSystemURL& url, bool* created) OVERRIDE; | |
| 27 | |
| 28 virtual AbstractFileEnumerator* CreateFileEnumerator( | |
| 29 FileSystemOperationContext* context, | |
| 30 const FileSystemURL& root_url, | |
| 31 bool recursive) OVERRIDE; | |
| 32 | |
| 33 virtual PlatformFileError Touch( | |
| 34 FileSystemOperationContext* context, | |
| 35 const FileSystemURL& url, | |
| 36 const base::Time& last_access_time, | |
| 37 const base::Time& last_modified_time) OVERRIDE; | |
| 38 | |
| 39 virtual PlatformFileError Truncate( | |
| 40 FileSystemOperationContext* context, | |
| 41 const FileSystemURL& url, | |
| 42 int64 length) OVERRIDE; | |
| 43 | |
| 44 virtual bool PathExists( | |
| 45 FileSystemOperationContext* context, | |
| 46 const FileSystemURL& url) OVERRIDE; | |
| 47 | |
| 48 virtual bool IsDirectoryEmpty( | |
| 49 FileSystemOperationContext* context, | |
| 50 const FileSystemURL& url) OVERRIDE; | |
| 51 | |
| 52 virtual PlatformFileError CopyOrMoveFile( | |
| 53 FileSystemOperationContext* context, | |
| 54 const FileSystemURL& src_url, | |
| 55 const FileSystemURL& dest_url, | |
| 56 bool copy) OVERRIDE; | |
| 57 | |
| 58 virtual PlatformFileError CopyInForeignFile( | |
| 59 FileSystemOperationContext* context, | |
| 60 const FilePath& src_file_path, | |
| 61 const FileSystemURL& dest_url) OVERRIDE; | |
| 62 | |
| 63 virtual PlatformFileError DeleteFile( | |
| 64 FileSystemOperationContext* context, | |
| 65 const FileSystemURL& url) OVERRIDE; | |
| 66 | |
| 67 virtual PlatformFileError GetFileInfo( | |
| 68 FileSystemOperationContext* context, | |
| 69 const FileSystemURL& url, | |
| 70 base::PlatformFileInfo* file_info, | |
| 71 FilePath* platform_path) OVERRIDE; | |
| 72 | |
| 73 virtual scoped_refptr<webkit_blob::ShareableFileReference> CreateSnapshotFile( | |
| 74 FileSystemOperationContext* context, | |
| 75 const FileSystemURL& url, | |
| 76 base::PlatformFileError* result, | |
| 77 base::PlatformFileInfo* file_info, | |
| 78 FilePath* platform_path) OVERRIDE; | |
| 79 }; | |
| 80 | |
| 81 } // namespace fileapi | |
| 82 | |
| 83 #endif // WEBKIT_FILEAPI_MEDIA_LOCAL_MEDIA_FILE_UTIL_H_ | |
| OLD | NEW |