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

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

Issue 14671020: FileAPI: Copy base::FileUtilProxy::Entry to fileapi::DirectoryEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build and remove base/ change 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
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/callback.h"
11 #include "base/files/file_path.h"
11 #include "base/platform_file.h" 12 #include "base/platform_file.h"
12 #include "base/process.h" 13 #include "base/process.h"
14 #include "webkit/fileapi/directory_entry.h"
13 15
14 namespace base { 16 namespace base {
15 class Time; 17 class Time;
16 } // namespace base 18 } // namespace base
17 19
18 namespace net { 20 namespace net {
19 class URLRequestContext; 21 class URLRequestContext;
20 } // namespace net 22 } // namespace net
21 23
22 namespace webkit_blob { 24 namespace webkit_blob {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Used for OpenFile(). |result| is the return code of the operation. 71 // Used for OpenFile(). |result| is the return code of the operation.
70 // |on_close_callback| will be called after the file is closed in the child 72 // |on_close_callback| will be called after the file is closed in the child
71 // process. 73 // process.
72 typedef base::Callback< 74 typedef base::Callback<
73 void(base::PlatformFileError result, 75 void(base::PlatformFileError result,
74 base::PlatformFile file, 76 base::PlatformFile file,
75 const base::Closure& on_close_callback, 77 const base::Closure& on_close_callback,
76 base::ProcessHandle peer_handle)> OpenFileCallback; 78 base::ProcessHandle peer_handle)> OpenFileCallback;
77 79
78 // Used for ReadDirectoryCallback. 80 // Used for ReadDirectoryCallback.
79 typedef std::vector<base::FileUtilProxy::Entry> FileEntryList; 81 typedef std::vector<DirectoryEntry> FileEntryList;
80 82
81 // Used for ReadDirectory(). |result| is the return code of the operation, 83 // Used for ReadDirectory(). |result| is the return code of the operation,
82 // |file_list| is the list of files read, and |has_more| is true if some files 84 // |file_list| is the list of files read, and |has_more| is true if some files
83 // are yet to be read. 85 // are yet to be read.
84 typedef base::Callback< 86 typedef base::Callback<
85 void(base::PlatformFileError result, 87 void(base::PlatformFileError result,
86 const FileEntryList& file_list, 88 const FileEntryList& file_list,
87 bool has_more)> ReadDirectoryCallback; 89 bool has_more)> ReadDirectoryCallback;
88 90
89 // Used for CreateSnapshotFile(). (Please see the comment at 91 // Used for CreateSnapshotFile(). (Please see the comment at
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 kOperationOpenFile, 269 kOperationOpenFile,
268 kOperationCloseFile, 270 kOperationCloseFile,
269 kOperationGetLocalPath, 271 kOperationGetLocalPath,
270 kOperationCancel, 272 kOperationCancel,
271 }; 273 };
272 }; 274 };
273 275
274 } // namespace fileapi 276 } // namespace fileapi
275 277
276 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 278 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_dir_url_request_job.cc ('k') | webkit/fileapi/isolated_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698