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/file_system_operation.h

Issue 10815003: Adding FileUtil::CreateSnapshotFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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_system_file_util_proxy.cc ('k') | webkit/fileapi/file_system_operation.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_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 bool has_more); 216 bool has_more);
217 void DidWrite(base::PlatformFileError rv, 217 void DidWrite(base::PlatformFileError rv,
218 int64 bytes, 218 int64 bytes,
219 bool complete); 219 bool complete);
220 void DidTouchFile(const StatusCallback& callback, 220 void DidTouchFile(const StatusCallback& callback,
221 base::PlatformFileError rv); 221 base::PlatformFileError rv);
222 void DidOpenFile(const OpenFileCallback& callback, 222 void DidOpenFile(const OpenFileCallback& callback,
223 base::PlatformFileError rv, 223 base::PlatformFileError rv,
224 base::PassPlatformFile file, 224 base::PassPlatformFile file,
225 bool created); 225 bool created);
226 void DidCreateSnapshotFile(
227 const SnapshotFileCallback& callback,
228 base::PlatformFileError rv,
229 const base::PlatformFileInfo& file_info,
230 const FilePath& platform_path,
231 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
226 232
227 // Checks the validity of a given |url| and populates |file_util| for |mode|. 233 // Checks the validity of a given |url| and populates |file_util| for |mode|.
228 base::PlatformFileError SetUp( 234 base::PlatformFileError SetUp(
229 const FileSystemURL& url, 235 const FileSystemURL& url,
230 FileSystemFileUtil** file_util, 236 FileSystemFileUtil** file_util,
231 SetUpMode mode); 237 SetUpMode mode);
232 238
233 // Used only for internal assertions. 239 // Used only for internal assertions.
234 // Returns false if there's another inflight pending operation. 240 // Returns false if there's another inflight pending operation.
235 bool SetPendingOperationType(OperationType type); 241 bool SetPendingOperationType(OperationType type);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // FileSystemOperation instance is usually deleted upon completion but 274 // FileSystemOperation instance is usually deleted upon completion but
269 // could be deleted while it has inflight callbacks when Cancel is called. 275 // could be deleted while it has inflight callbacks when Cancel is called.
270 base::WeakPtrFactory<FileSystemOperation> weak_factory_; 276 base::WeakPtrFactory<FileSystemOperation> weak_factory_;
271 277
272 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); 278 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
273 }; 279 };
274 280
275 } // namespace fileapi 281 } // namespace fileapi
276 282
277 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 283 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698