| Index: chrome/browser/system_monitor/portable_device_watcher_win.h
|
| diff --git a/chrome/browser/system_monitor/portable_device_watcher_win.h b/chrome/browser/system_monitor/portable_device_watcher_win.h
|
| index dca68cba6faa050b4407208ae733d85b70923d1a..4b95af45af445d0ecd501041e39df1d6e1b71d93 100644
|
| --- a/chrome/browser/system_monitor/portable_device_watcher_win.h
|
| +++ b/chrome/browser/system_monitor/portable_device_watcher_win.h
|
| @@ -38,7 +38,10 @@ class PortableDeviceWatcherWin {
|
| DeviceStorageObject(const string16& temporary_id,
|
| const std::string& persistent_id);
|
|
|
| - // Storage object temporary identifier, e.g. "s10001".
|
| + // Storage object temporary identifier, e.g. "s10001". This string ID
|
| + // uniquely identifies the object on the device. This ID need not be
|
| + // persistent across sessions. This ID is obtained from WPD_OBJECT_ID
|
| + // property.
|
| string16 object_temporary_id;
|
|
|
| // Storage object persistent identifier,
|
| @@ -71,6 +74,14 @@ class PortableDeviceWatcherWin {
|
| // SystemMonitor notification if appropriate.
|
| void OnWindowMessage(UINT event_type, LPARAM data);
|
|
|
| + // Gets the information of the MTP storage specified by |storage_device_id|.
|
| + // On success, returns true and fills in |device_location| with device
|
| + // interface details and |storage_object_id| with storage object temporary
|
| + // identifier.
|
| + bool GetMTPStorageInfoFromDeviceId(const std::string& storage_device_id,
|
| + string16* device_location,
|
| + string16* storage_object_id);
|
| +
|
| private:
|
| friend class TestPortableDeviceWatcherWin;
|
|
|
|
|