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

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

Issue 11960003: Cleanup: Move more recursive operation logic from FileUtilHelper to FileUtil (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« no previous file with comments | « webkit/fileapi/local_file_util.cc ('k') | webkit/fileapi/media/device_media_file_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DEVICE_MEDIA_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 FilePath* local_file_path) OVERRIDE; 58 FilePath* local_file_path) OVERRIDE;
59 virtual base::PlatformFileError Touch( 59 virtual base::PlatformFileError Touch(
60 FileSystemOperationContext* context, 60 FileSystemOperationContext* context,
61 const FileSystemURL& url, 61 const FileSystemURL& url,
62 const base::Time& last_access_time, 62 const base::Time& last_access_time,
63 const base::Time& last_modified_time) OVERRIDE; 63 const base::Time& last_modified_time) OVERRIDE;
64 virtual base::PlatformFileError Truncate( 64 virtual base::PlatformFileError Truncate(
65 FileSystemOperationContext* context, 65 FileSystemOperationContext* context,
66 const FileSystemURL& url, 66 const FileSystemURL& url,
67 int64 length) OVERRIDE; 67 int64 length) OVERRIDE;
68 virtual bool IsDirectoryEmpty(
69 FileSystemOperationContext* context,
70 const FileSystemURL& url) OVERRIDE;
71 virtual base::PlatformFileError CopyOrMoveFile( 68 virtual base::PlatformFileError CopyOrMoveFile(
72 FileSystemOperationContext* context, 69 FileSystemOperationContext* context,
73 const FileSystemURL& src_url, 70 const FileSystemURL& src_url,
74 const FileSystemURL& dest_url, 71 const FileSystemURL& dest_url,
75 bool copy) OVERRIDE; 72 bool copy) OVERRIDE;
76 virtual base::PlatformFileError CopyInForeignFile( 73 virtual base::PlatformFileError CopyInForeignFile(
77 FileSystemOperationContext* context, 74 FileSystemOperationContext* context,
78 const FilePath& src_file_path, 75 const FilePath& src_file_path,
79 const FileSystemURL& dest_url) OVERRIDE; 76 const FileSystemURL& dest_url) OVERRIDE;
80 virtual base::PlatformFileError DeleteFile( 77 virtual base::PlatformFileError DeleteFile(
81 FileSystemOperationContext* context, 78 FileSystemOperationContext* context,
82 const FileSystemURL& url) OVERRIDE; 79 const FileSystemURL& url) OVERRIDE;
83 virtual base::PlatformFileError DeleteSingleDirectory( 80 virtual base::PlatformFileError DeleteDirectory(
84 FileSystemOperationContext* context, 81 FileSystemOperationContext* context,
85 const FileSystemURL& url) OVERRIDE; 82 const FileSystemURL& url) OVERRIDE;
86 virtual base::PlatformFileError CreateSnapshotFile( 83 virtual base::PlatformFileError CreateSnapshotFile(
87 FileSystemOperationContext* context, 84 FileSystemOperationContext* context,
88 const FileSystemURL& url, 85 const FileSystemURL& url,
89 base::PlatformFileInfo* file_info, 86 base::PlatformFileInfo* file_info,
90 FilePath* platform_path, 87 FilePath* platform_path,
91 SnapshotFilePolicy* policy) OVERRIDE; 88 SnapshotFilePolicy* policy) OVERRIDE;
92 89
93 private: 90 private:
94 // Profile path 91 // Profile path
95 const FilePath profile_path_; 92 const FilePath profile_path_;
96 93
97 DISALLOW_COPY_AND_ASSIGN(DeviceMediaFileUtil); 94 DISALLOW_COPY_AND_ASSIGN(DeviceMediaFileUtil);
98 }; 95 };
99 96
100 } // namespace fileapi 97 } // namespace fileapi
101 98
102 #endif // WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ 99 #endif // WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_util.cc ('k') | webkit/fileapi/media/device_media_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698