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

Side by Side Diff: webkit/chromeos/fileapi/remote_file_system_operation.cc

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 #include "webkit/chromeos/fileapi/remote_file_system_operation.h" 5 #include "webkit/chromeos/fileapi/remote_file_system_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 const GetMetadataCallback& callback, 246 const GetMetadataCallback& callback,
247 base::PlatformFileError rv, 247 base::PlatformFileError rv,
248 const base::PlatformFileInfo& file_info, 248 const base::PlatformFileInfo& file_info,
249 const base::FilePath& platform_path) { 249 const base::FilePath& platform_path) {
250 callback.Run(rv, file_info, platform_path); 250 callback.Run(rv, file_info, platform_path);
251 } 251 }
252 252
253 void RemoteFileSystemOperation::DidReadDirectory( 253 void RemoteFileSystemOperation::DidReadDirectory(
254 const ReadDirectoryCallback& callback, 254 const ReadDirectoryCallback& callback,
255 base::PlatformFileError rv, 255 base::PlatformFileError rv,
256 const std::vector<base::FileUtilProxy::Entry>& entries, 256 const std::vector<fileapi::DirectoryEntry>& entries,
257 bool has_more) { 257 bool has_more) {
258 callback.Run(rv, entries, has_more /* has_more */); 258 callback.Run(rv, entries, has_more /* has_more */);
259 } 259 }
260 260
261 void RemoteFileSystemOperation::DidWrite( 261 void RemoteFileSystemOperation::DidWrite(
262 base::PlatformFileError rv, 262 base::PlatformFileError rv,
263 int64 bytes, 263 int64 bytes,
264 FileWriterDelegate::WriteProgressStatus write_status) { 264 FileWriterDelegate::WriteProgressStatus write_status) {
265 if (write_callback_.is_null()) { 265 if (write_callback_.is_null()) {
266 // If cancelled, callback is already invoked and set to null in Cancel(). 266 // If cancelled, callback is already invoked and set to null in Cancel().
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 base::PlatformFile file, 312 base::PlatformFile file,
313 base::ProcessHandle peer_handle) { 313 base::ProcessHandle peer_handle) {
314 callback.Run( 314 callback.Run(
315 result, file, 315 result, file,
316 base::Bind(&fileapi::RemoteFileSystemProxyInterface::NotifyCloseFile, 316 base::Bind(&fileapi::RemoteFileSystemProxyInterface::NotifyCloseFile,
317 remote_proxy_, url), 317 remote_proxy_, url),
318 peer_handle); 318 peer_handle);
319 } 319 }
320 320
321 } // namespace chromeos 321 } // namespace chromeos
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.h ('k') | webkit/fileapi/async_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698