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

Unified Diff: chrome/browser/system_monitor/removable_storage_notifications.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: Addressed comments 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/removable_storage_notifications.h
diff --git a/chrome/browser/system_monitor/removable_storage_notifications.h b/chrome/browser/system_monitor/removable_storage_notifications.h
index 43924db968eb31b9388164e5d363cb228e4c1f00..0b584d82e0405fa260c38f7d9759f974a8429e66 100644
--- a/chrome/browser/system_monitor/removable_storage_notifications.h
+++ b/chrome/browser/system_monitor/removable_storage_notifications.h
@@ -30,6 +30,18 @@ class RemovableStorageNotifications {
// Returns the storage size of the device present at |location|. If the
// device information is unavailable, returns zero.
virtual uint64 GetStorageSize(const std::string& location) const = 0;
+
+#if defined(OS_WIN)
+ // Gets the MTP device storage information specified by |storage_device_id|.
+ // On success, returns true and fills in |device_location| with device
+ // interface details and |storage_object_id| with the string ID that
+ // uniquely identifies the object on the device. This ID need not be
+ // persistent across sessions.
+ virtual bool GetMTPStorageInfoFromDeviceId(
+ const std::string& storage_device_id,
+ string16* device_location,
+ string16* storage_object_id) const = 0;
+#endif
};
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698