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

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

Issue 14472008: [FileAPI] Add file open ID and close callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos part Created 7 years, 8 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_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 <vector> 8 #include <vector>
9 9
10 #include "base/files/file_util_proxy.h" 10 #include "base/files/file_util_proxy.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // of the file. 63 // of the file.
64 typedef base::Callback< 64 typedef base::Callback<
65 void(base::PlatformFileError result, 65 void(base::PlatformFileError result,
66 const base::PlatformFileInfo& file_info, 66 const base::PlatformFileInfo& file_info,
67 const base::FilePath& platform_path)> GetMetadataCallback; 67 const base::FilePath& platform_path)> GetMetadataCallback;
68 68
69 // Used for OpenFile(). |result| is the return code of the operation. 69 // Used for OpenFile(). |result| is the return code of the operation.
70 typedef base::Callback< 70 typedef base::Callback<
71 void(base::PlatformFileError result, 71 void(base::PlatformFileError result,
72 base::PlatformFile file, 72 base::PlatformFile file,
73 const base::Closure& close_callback,
kinuko 2013/04/25 05:55:52 documentation? Also close_callback makes me feel
tzik 2013/04/25 06:43:46 Done.
73 base::ProcessHandle peer_handle)> OpenFileCallback; 74 base::ProcessHandle peer_handle)> OpenFileCallback;
74 75
75 // Used for ReadDirectoryCallback. 76 // Used for ReadDirectoryCallback.
76 typedef std::vector<base::FileUtilProxy::Entry> FileEntryList; 77 typedef std::vector<base::FileUtilProxy::Entry> FileEntryList;
77 78
78 // Used for ReadDirectory(). |result| is the return code of the operation, 79 // Used for ReadDirectory(). |result| is the return code of the operation,
79 // |file_list| is the list of files read, and |has_more| is true if some files 80 // |file_list| is the list of files read, and |has_more| is true if some files
80 // are yet to be read. 81 // are yet to be read.
81 typedef base::Callback< 82 typedef base::Callback<
82 void(base::PlatformFileError result, 83 void(base::PlatformFileError result,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 kOperationOpenFile, 272 kOperationOpenFile,
272 kOperationCloseFile, 273 kOperationCloseFile,
273 kOperationGetLocalPath, 274 kOperationGetLocalPath,
274 kOperationCancel, 275 kOperationCancel,
275 }; 276 };
276 }; 277 };
277 278
278 } // namespace fileapi 279 } // namespace fileapi
279 280
280 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 281 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698