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

Unified Diff: chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.h

Issue 23383009: [StorageMonitor] Handle EjectDevice call for MTP devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698