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

Unified Diff: chrome/browser/system_monitor/portable_device_watcher_win.h

Issue 11297002: [Media Gallery] Added code to support mtp device media file system on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + IWYU Created 7 years, 11 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/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;

Powered by Google App Engine
This is Rietveld 408576698