Chromium Code Reviews| Index: chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
| diff --git a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
| index f73c3f77bea5611fb0b418292f46899dcd37ab65..45416107f50baa809ec27eac6d13e5e573d97287 100644 |
| --- a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
| +++ b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
| @@ -63,6 +63,9 @@ class MTPDeviceAsyncDelegate { |
| ErrorCallback error_callback; |
| }; |
| + // A callback to be called when CopyFileFromLocal method call succeeds. |
| + typedef base::Callback<void()> CopyFileFromLocalSuccessCallback; |
|
Lei Zhang
2015/02/24 23:35:48
Isn't base::Callback<void()> just base::Closure, l
yawano
2015/02/26 07:27:54
Done.
|
| + |
| // Gets information about the given |file_path| and invokes the appropriate |
| // callback asynchronously when complete. |
| virtual void GetFileInfo( |
| @@ -99,6 +102,13 @@ class MTPDeviceAsyncDelegate { |
| const ReadBytesSuccessCallback& success_callback, |
| const ErrorCallback& error_callback) = 0; |
| + // Copies a file from |source_file_path| to |device_file_path|. |
| + virtual void CopyFileFromLocal( |
| + const base::FilePath& source_file_path, |
| + const base::FilePath& device_file_path, |
| + const CopyFileFromLocalSuccessCallback& success_callback, |
| + const ErrorCallback& error_callback) = 0; |
| + |
| // Called when the |
| // (1) Browser application is in shutdown mode (or) |
| // (2) Last extension using this MTP device is destroyed (or) |