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

Side by Side Diff: webkit/fileapi/file_system_file_util.h

Issue 14075016: Change some snapshot- or temporary-file related changes to use ScopedFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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/file_snapshot_policy.h ('k') | webkit/fileapi/local_file_system_operation.h » ('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_FILE_SYSTEM_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/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"
11 #include "webkit/fileapi/file_snapshot_policy.h" 11 #include "webkit/blob/scoped_file.h"
12 #include "webkit/storage/webkit_storage_export.h" 12 #include "webkit/storage/webkit_storage_export.h"
13 13
14 namespace base { 14 namespace base {
15 class Time; 15 class Time;
16 } 16 }
17 17
18 namespace fileapi { 18 namespace fileapi {
19 19
20 class FileSystemOperationContext; 20 class FileSystemOperationContext;
21 class FileSystemURL; 21 class FileSystemURL;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // See header comments for AsyncFileUtil::DeleteDirectory() for more details. 163 // See header comments for AsyncFileUtil::DeleteDirectory() for more details.
164 virtual base::PlatformFileError DeleteDirectory( 164 virtual base::PlatformFileError DeleteDirectory(
165 FileSystemOperationContext* context, 165 FileSystemOperationContext* context,
166 const FileSystemURL& url) = 0; 166 const FileSystemURL& url) = 0;
167 167
168 // Creates a local snapshot file for a given |url| and returns the 168 // Creates a local snapshot file for a given |url| and returns the
169 // metadata and platform path of the snapshot file via |callback|. 169 // metadata and platform path of the snapshot file via |callback|.
170 // 170 //
171 // See header comments for AsyncFileUtil::CreateSnapshotFile() for 171 // See header comments for AsyncFileUtil::CreateSnapshotFile() for
172 // more details. 172 // more details.
173 virtual base::PlatformFileError CreateSnapshotFile( 173 virtual webkit_blob::ScopedFile CreateSnapshotFile(
174 FileSystemOperationContext* context, 174 FileSystemOperationContext* context,
175 const FileSystemURL& url, 175 const FileSystemURL& url,
176 base::PlatformFileError* error,
176 base::PlatformFileInfo* file_info, 177 base::PlatformFileInfo* file_info,
177 base::FilePath* platform_path, 178 base::FilePath* platform_path) = 0;
178 SnapshotFilePolicy* policy) = 0;
179 179
180 protected: 180 protected:
181 FileSystemFileUtil() {} 181 FileSystemFileUtil() {}
182 182
183 private: 183 private:
184 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); 184 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil);
185 }; 185 };
186 186
187 } // namespace fileapi 187 } // namespace fileapi
188 188
189 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 189 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_snapshot_policy.h ('k') | webkit/fileapi/local_file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698