Implement CopyFileFromLocal of MTPDeviceAsyncDelegate.
commit8cd28e349ab9605da7dbf97c8c85f8c541b3b59b
authoryawano <yawano@chromium.org>
Thu, 5 Mar 2015 03:43:15 +0000 (4 19:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 03:43:43 +0000 (5 03:43 +0000)
tree65bc75420d1f52d538c723bd0caf274ee44022a8
parent4f2eab7cd613d87c79a192bfc5183f79483d95bf
Implement CopyFileFromLocal of MTPDeviceAsyncDelegate.

CopyFileFromLocal is a method to copy a local file to the device. This method will be used in CopyInForeingFile of AsyncFileUtil.
A CL to connect CopyFileFromLocal to CopyInForeingFile will come later when all other write operations (e.g. delete) are implemented.

BUG=413541
TEST=none; manually tested with changing write_supported variable in volume_manager.cc to true.

Review URL: https://codereview.chromium.org/947943002

Cr-Commit-Position: refs/heads/master@{#319205}
23 files changed:
chrome/browser/chromeos/file_manager/volume_manager.cc
chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc
chrome/browser/media_galleries/fileapi/device_media_async_file_util.h
chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
chrome/browser/media_galleries/fileapi/mtp_device_map_service.h
chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc
chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h
chrome/browser/media_galleries/linux/mtp_device_task_helper.cc
chrome/browser/media_galleries/linux/mtp_device_task_helper.h
chrome/browser/media_galleries/linux/mtp_device_task_helper_map_service.cc
chrome/browser/media_galleries/linux/mtp_device_task_helper_map_service.h
chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm
chrome/browser/media_galleries/media_file_system_registry.cc
chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h
components/storage_monitor/test_media_transfer_protocol_manager_linux.cc
components/storage_monitor/test_media_transfer_protocol_manager_linux.h
device/media_transfer_protocol/media_transfer_protocol_daemon_client.cc
device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
device/media_transfer_protocol/media_transfer_protocol_manager.cc
device/media_transfer_protocol/media_transfer_protocol_manager.h