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 // This class handles native media filesystem that we can access with same | |
14 // manner to native filesystem. | |
kinuko
2012/07/31 01:26:35
How about: "This class handles native file system
tzik
2012/07/31 22:31:23
Done.
| |
15 class FILEAPI_EXPORT_PRIVATE NativeMediaFileUtil : public IsolatedFileUtil { | |
16 public: | |
17 NativeMediaFileUtil(); | |
18 | |
19 virtual PlatformFileError CreateOrOpen( | |
20 FileSystemOperationContext* context, | |
21 const FileSystemURL& url, | |
22 int file_flags, | |
23 PlatformFile* file_handle, | |
24 bool* created) OVERRIDE; | |
25 virtual PlatformFileError EnsureFileExists( | |
26 FileSystemOperationContext* context, | |
27 const FileSystemURL& url, bool* created) OVERRIDE; | |
28 virtual AbstractFileEnumerator* CreateFileEnumerator( | |
29 FileSystemOperationContext* context, | |
30 const FileSystemURL& root_url, | |
31 bool recursive) OVERRIDE; | |
32 virtual PlatformFileError Touch( | |
33 FileSystemOperationContext* context, | |
34 const FileSystemURL& url, | |
35 const base::Time& last_access_time, | |
36 const base::Time& last_modified_time) OVERRIDE; | |
37 virtual PlatformFileError Truncate( | |
38 FileSystemOperationContext* context, | |
39 const FileSystemURL& url, | |
40 int64 length) OVERRIDE; | |
41 virtual bool PathExists( | |
42 FileSystemOperationContext* context, | |
43 const FileSystemURL& url) OVERRIDE; | |
44 virtual bool IsDirectoryEmpty( | |
45 FileSystemOperationContext* context, | |
46 const FileSystemURL& url) OVERRIDE; | |
47 virtual PlatformFileError CopyOrMoveFile( | |
48 FileSystemOperationContext* context, | |
49 const FileSystemURL& src_url, | |
50 const FileSystemURL& dest_url, | |
51 bool copy) OVERRIDE; | |
52 virtual PlatformFileError CopyInForeignFile( | |
53 FileSystemOperationContext* context, | |
54 const FilePath& src_file_path, | |
55 const FileSystemURL& dest_url) OVERRIDE; | |
56 virtual PlatformFileError DeleteFile( | |
57 FileSystemOperationContext* context, | |
58 const FileSystemURL& url) OVERRIDE; | |
59 virtual PlatformFileError GetFileInfo( | |
60 FileSystemOperationContext* context, | |
61 const FileSystemURL& url, | |
62 base::PlatformFileInfo* file_info, | |
63 FilePath* platform_path) OVERRIDE; | |
64 | |
65 private: | |
66 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); | |
67 }; | |
68 | |
69 } // namespace fileapi | |
70 | |
71 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | |
OLD | NEW |