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

Side by Side Diff: chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h

Issue 1007173003: Implement MoveFileLocal (with rename operation). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.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 CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 const CopyFileLocalSuccessCallback& success_callback, 303 const CopyFileLocalSuccessCallback& success_callback,
304 const ErrorCallback& error_callback, 304 const ErrorCallback& error_callback,
305 const base::File::Info& file_info, 305 const base::File::Info& file_info,
306 const base::FilePath& temporary_file_path); 306 const base::FilePath& temporary_file_path);
307 307
308 // Called when CopyFileFromLocal() succeeds for CopyFileLocal. 308 // Called when CopyFileFromLocal() succeeds for CopyFileLocal.
309 void OnDidCopyFileFromLocalOfCopyFileLocal( 309 void OnDidCopyFileFromLocalOfCopyFileLocal(
310 const CopyFileFromLocalSuccessCallback success_callback, 310 const CopyFileFromLocalSuccessCallback success_callback,
311 const base::FilePath& temporary_file_path); 311 const base::FilePath& temporary_file_path);
312 312
313 // Called when MoveFileLocal() succeeds with rename operation.
314 void OnDidMoveFileLocalWithRename(
315 const MoveFileLocalSuccessCallback& success_callback,
316 const uint32 file_id);
317
313 // Called when CopyFileFromLocal() succeeds. 318 // Called when CopyFileFromLocal() succeeds.
314 void OnDidCopyFileFromLocal( 319 void OnDidCopyFileFromLocal(
315 const CopyFileFromLocalSuccessCallback& success_callback, 320 const CopyFileFromLocalSuccessCallback& success_callback,
316 const int source_file_descriptor); 321 const int source_file_descriptor);
317 322
318 // Called when CopyFileLocal() fails. 323 // Called when CopyFileLocal() fails.
319 void HandleCopyFileLocalError(const ErrorCallback& error_callback, 324 void HandleCopyFileLocalError(const ErrorCallback& error_callback,
320 const base::FilePath& temporary_file_path, 325 const base::FilePath& temporary_file_path,
321 const base::File::Error error); 326 const base::File::Error error);
322 327
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // the ReadDirectory operation. 408 // the ReadDirectory operation.
404 FileInfoCache file_info_cache_; 409 FileInfoCache file_info_cache_;
405 410
406 // For callbacks that may run after destruction. 411 // For callbacks that may run after destruction.
407 base::WeakPtrFactory<MTPDeviceDelegateImplLinux> weak_ptr_factory_; 412 base::WeakPtrFactory<MTPDeviceDelegateImplLinux> weak_ptr_factory_;
408 413
409 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplLinux); 414 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplLinux);
410 }; 415 };
411 416
412 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H _ 417 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698