| Index: device/media_transfer_protocol/media_transfer_protocol_manager.h
|
| diff --git a/device/media_transfer_protocol/media_transfer_protocol_manager.h b/device/media_transfer_protocol/media_transfer_protocol_manager.h
|
| index 1915ce205cf5a3657feb2ece66c6316b3a049f14..724fe86e4be81ce8a415f84d94e7a82ce9de34b0 100644
|
| --- a/device/media_transfer_protocol/media_transfer_protocol_manager.h
|
| +++ b/device/media_transfer_protocol/media_transfer_protocol_manager.h
|
| @@ -59,6 +59,10 @@ class MediaTransferProtocolManager {
|
| typedef base::Callback<void(const MtpFileEntry& file_entry,
|
| bool error)> GetFileInfoCallback;
|
|
|
| + // A callback to handle the result of RenameObject.
|
| + // The first argument is true if there was an error.
|
| + typedef base::Callback<void(bool error)> RenameObjectCallback;
|
| +
|
| // A callback to handle the result of CopyFileFromLocal.
|
| // The first argument is true if there was an error.
|
| typedef base::Callback<void(bool error)> CopyFileFromLocalCallback;
|
| @@ -124,6 +128,12 @@ class MediaTransferProtocolManager {
|
| uint32 file_id,
|
| const GetFileInfoCallback& callback) = 0;
|
|
|
| + // Renames |object_id| to |new_name|.
|
| + virtual void RenameObject(const std::string& storage_handle,
|
| + const uint32 object_id,
|
| + const std::string& new_name,
|
| + const RenameObjectCallback& callback) = 0;
|
| +
|
| // Copies the file from |source_file_descriptor| to |file_name| on
|
| // |parent_id|.
|
| virtual void CopyFileFromLocal(const std::string& storage_handle,
|
|
|