| Index: chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.h
|
| diff --git a/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.h b/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.h
|
| index d95d1f6610d8d83079497b02b3791b87786d99e1..4f03a6def4c46463473e8997e0210715bf8c6943 100644
|
| --- a/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.h
|
| +++ b/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.h
|
| @@ -42,6 +42,9 @@ class MediaTransferProtocolDeviceObserverLinux
|
| bool GetStorageInfoForPath(const base::FilePath& path,
|
| StorageInfo* storage_info) const;
|
|
|
| + void EjectDevice(const std::string& device_id,
|
| + base::Callback<void(StorageMonitor::EjectStatus)> callback);
|
| +
|
| protected:
|
| // Only used in unit tests.
|
| MediaTransferProtocolDeviceObserverLinux(
|
| @@ -61,6 +64,11 @@ class MediaTransferProtocolDeviceObserverLinux
|
| // Enumerate existing mtp storage devices.
|
| void EnumerateStorages();
|
|
|
| + // Find the |storage_map_| key for the record with this |device_id|. Returns
|
| + // true on success, false on failure.
|
| + bool GetLocationForDeviceId(const std::string& device_id,
|
| + std::string* location);
|
| +
|
| // Pointer to the MTP manager. Not owned. Client must ensure the MTP
|
| // manager outlives this object.
|
| device::MediaTransferProtocolManager* mtp_manager_;
|
|
|