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

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

Issue 10834167: Create ShareableFileReference on IO thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding unknown policy for DCHECK 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
« no previous file with comments | « webkit/fileapi/file_util_helper.cc ('k') | webkit/fileapi/local_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_LOCAL_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 base::PlatformFileError rv); 219 base::PlatformFileError rv);
220 void DidOpenFile(const OpenFileCallback& callback, 220 void DidOpenFile(const OpenFileCallback& callback,
221 base::PlatformFileError rv, 221 base::PlatformFileError rv,
222 base::PassPlatformFile file, 222 base::PassPlatformFile file,
223 bool created); 223 bool created);
224 void DidCreateSnapshotFile( 224 void DidCreateSnapshotFile(
225 const SnapshotFileCallback& callback, 225 const SnapshotFileCallback& callback,
226 base::PlatformFileError rv, 226 base::PlatformFileError rv,
227 const base::PlatformFileInfo& file_info, 227 const base::PlatformFileInfo& file_info,
228 const FilePath& platform_path, 228 const FilePath& platform_path,
229 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 229 FileSystemFileUtil::SnapshotFilePolicy snapshot_policy);
230 230
231 // Checks the validity of a given |url| and populates |file_util| for |mode|. 231 // Checks the validity of a given |url| and populates |file_util| for |mode|.
232 base::PlatformFileError SetUp( 232 base::PlatformFileError SetUp(
233 const FileSystemURL& url, 233 const FileSystemURL& url,
234 FileSystemFileUtil** file_util, 234 FileSystemFileUtil** file_util,
235 SetUpMode mode); 235 SetUpMode mode);
236 236
237 // Used only for internal assertions. 237 // Used only for internal assertions.
238 // Returns false if there's another inflight pending operation. 238 // Returns false if there's another inflight pending operation.
239 bool SetPendingOperationType(OperationType type); 239 bool SetPendingOperationType(OperationType type);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // LocalFileSystemOperation instance is usually deleted upon completion but 272 // LocalFileSystemOperation instance is usually deleted upon completion but
273 // could be deleted while it has inflight callbacks when Cancel is called. 273 // could be deleted while it has inflight callbacks when Cancel is called.
274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; 274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); 276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation);
277 }; 277 };
278 278
279 } // namespace fileapi 279 } // namespace fileapi
280 280
281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ 281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_util_helper.cc ('k') | webkit/fileapi/local_file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698