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

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

Issue 11747020: Cleanup: Remove using statements from webkit/fileapi header files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/fileapi/isolated_file_util.h" 9 #include "webkit/fileapi/isolated_file_util.h"
10 #include "webkit/storage/webkit_storage_export.h" 10 #include "webkit/storage/webkit_storage_export.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 13
14 // This class handles native file system operations with media type filtering 14 // This class handles native file system operations with media type filtering
15 // which is passed to each method via FileSystemOperationContext as 15 // which is passed to each method via FileSystemOperationContext as
16 // MediaPathFilter. 16 // MediaPathFilter.
17 class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil 17 class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil
18 : public IsolatedFileUtil { 18 : public IsolatedFileUtil {
19 public: 19 public:
20 NativeMediaFileUtil(); 20 NativeMediaFileUtil();
21 21
22 virtual PlatformFileError CreateOrOpen( 22 virtual base::PlatformFileError CreateOrOpen(
23 FileSystemOperationContext* context, 23 FileSystemOperationContext* context,
24 const FileSystemURL& url, 24 const FileSystemURL& url,
25 int file_flags, 25 int file_flags,
26 PlatformFile* file_handle, 26 base::PlatformFile* file_handle,
27 bool* created) OVERRIDE; 27 bool* created) OVERRIDE;
28 virtual PlatformFileError EnsureFileExists( 28 virtual base::PlatformFileError EnsureFileExists(
29 FileSystemOperationContext* context, 29 FileSystemOperationContext* context,
30 const FileSystemURL& url, bool* created) OVERRIDE; 30 const FileSystemURL& url, bool* created) OVERRIDE;
31 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( 31 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator(
32 FileSystemOperationContext* context, 32 FileSystemOperationContext* context,
33 const FileSystemURL& root_url, 33 const FileSystemURL& root_url,
34 bool recursive) OVERRIDE; 34 bool recursive) OVERRIDE;
35 virtual PlatformFileError Touch( 35 virtual base::PlatformFileError Touch(
36 FileSystemOperationContext* context, 36 FileSystemOperationContext* context,
37 const FileSystemURL& url, 37 const FileSystemURL& url,
38 const base::Time& last_access_time, 38 const base::Time& last_access_time,
39 const base::Time& last_modified_time) OVERRIDE; 39 const base::Time& last_modified_time) OVERRIDE;
40 virtual PlatformFileError Truncate( 40 virtual base::PlatformFileError Truncate(
41 FileSystemOperationContext* context, 41 FileSystemOperationContext* context,
42 const FileSystemURL& url, 42 const FileSystemURL& url,
43 int64 length) OVERRIDE; 43 int64 length) OVERRIDE;
44 virtual bool IsDirectoryEmpty( 44 virtual bool IsDirectoryEmpty(
45 FileSystemOperationContext* context, 45 FileSystemOperationContext* context,
46 const FileSystemURL& url) OVERRIDE; 46 const FileSystemURL& url) OVERRIDE;
47 virtual PlatformFileError CopyOrMoveFile( 47 virtual base::PlatformFileError CopyOrMoveFile(
48 FileSystemOperationContext* context, 48 FileSystemOperationContext* context,
49 const FileSystemURL& src_url, 49 const FileSystemURL& src_url,
50 const FileSystemURL& dest_url, 50 const FileSystemURL& dest_url,
51 bool copy) OVERRIDE; 51 bool copy) OVERRIDE;
52 virtual PlatformFileError CopyInForeignFile( 52 virtual base::PlatformFileError CopyInForeignFile(
53 FileSystemOperationContext* context, 53 FileSystemOperationContext* context,
54 const FilePath& src_file_path, 54 const FilePath& src_file_path,
55 const FileSystemURL& dest_url) OVERRIDE; 55 const FileSystemURL& dest_url) OVERRIDE;
56 virtual PlatformFileError DeleteFile( 56 virtual base::PlatformFileError DeleteFile(
57 FileSystemOperationContext* context, 57 FileSystemOperationContext* context,
58 const FileSystemURL& url) OVERRIDE; 58 const FileSystemURL& url) OVERRIDE;
59 virtual PlatformFileError GetFileInfo( 59 virtual base::PlatformFileError GetFileInfo(
60 FileSystemOperationContext* context, 60 FileSystemOperationContext* context,
61 const FileSystemURL& url, 61 const FileSystemURL& url,
62 base::PlatformFileInfo* file_info, 62 base::PlatformFileInfo* file_info,
63 FilePath* platform_path) OVERRIDE; 63 FilePath* platform_path) OVERRIDE;
64 64
65 private: 65 private:
66 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); 66 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil);
67 }; 67 };
68 68
69 } // namespace fileapi 69 } // namespace fileapi
70 70
71 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ 71 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/media/mtp_device_delegate.h ('k') | webkit/fileapi/media/native_media_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698