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

Side by Side Diff: webkit/fileapi/media/native_media_file_util.h

Issue 10825042: Implement media path filter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 file system operations with media type filtering
14 // which is passed to each method via FileSystemOperationContext as
15 // MediaPathFilter.
16 class FILEAPI_EXPORT_PRIVATE NativeMediaFileUtil : public IsolatedFileUtil {
17 public:
18 NativeMediaFileUtil();
19
20 virtual PlatformFileError CreateOrOpen(
21 FileSystemOperationContext* context,
22 const FileSystemURL& url,
23 int file_flags,
24 PlatformFile* file_handle,
25 bool* created) OVERRIDE;
26 virtual PlatformFileError EnsureFileExists(
27 FileSystemOperationContext* context,
28 const FileSystemURL& url, bool* created) OVERRIDE;
29 virtual AbstractFileEnumerator* CreateFileEnumerator(
30 FileSystemOperationContext* context,
31 const FileSystemURL& root_url,
32 bool recursive) OVERRIDE;
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 virtual PlatformFileError Truncate(
39 FileSystemOperationContext* context,
40 const FileSystemURL& url,
41 int64 length) OVERRIDE;
42 virtual bool PathExists(
43 FileSystemOperationContext* context,
44 const FileSystemURL& url) OVERRIDE;
45 virtual bool IsDirectoryEmpty(
46 FileSystemOperationContext* context,
47 const FileSystemURL& url) OVERRIDE;
48 virtual PlatformFileError CopyOrMoveFile(
49 FileSystemOperationContext* context,
50 const FileSystemURL& src_url,
51 const FileSystemURL& dest_url,
52 bool copy) OVERRIDE;
53 virtual PlatformFileError CopyInForeignFile(
54 FileSystemOperationContext* context,
55 const FilePath& src_file_path,
56 const FileSystemURL& dest_url) OVERRIDE;
57 virtual PlatformFileError DeleteFile(
58 FileSystemOperationContext* context,
59 const FileSystemURL& url) OVERRIDE;
60 virtual PlatformFileError GetFileInfo(
61 FileSystemOperationContext* context,
62 const FileSystemURL& url,
63 base::PlatformFileInfo* file_info,
64 FilePath* platform_path) OVERRIDE;
65
66 private:
67 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil);
68 };
69
70 } // namespace fileapi
71
72 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/media/media_path_filter.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