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

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

Issue 12211084: [Media Galleries] Populate volume metadata in ChromeOS/Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add larger constructor, put linux data structures back Created 7 years, 9 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/storage_monitor_linux.h
diff --git a/chrome/browser/storage_monitor/storage_monitor_linux.h b/chrome/browser/storage_monitor/storage_monitor_linux.h
index 490d950c54ac22d025e323af0f60b7d2415f5afb..611dacbd1790a830d700cb9b68630812bf46ea45 100644
--- a/chrome/browser/storage_monitor/storage_monitor_linux.h
+++ b/chrome/browser/storage_monitor/storage_monitor_linux.h
@@ -29,13 +29,17 @@ namespace base {
class FilePath;
}
-// Gets device information given a |device_path|. On success, fills in
-// |unique_id|, |name|, |removable| and |partition_size_in_bytes|.
+// Gets device information given a |device_path| and |mount_point|.
+// On success, fills in metadata fields.
typedef void (*GetDeviceInfoFunc)(const base::FilePath& device_path,
- std::string* unique_id,
+ const base::FilePath& mount_point,
+ std::string* device_id,
string16* name,
bool* removable,
- uint64* partition_size_in_bytes);
+ uint64* partition_size_in_bytes,
+ string16* volume_label,
+ string16* vendor_name,
+ string16* model_name);
namespace chrome {
@@ -82,12 +86,8 @@ class StorageMonitorLinux
// Structure to save mounted device information such as device path, unique
// identifier, device name and partition size.
struct MountPointInfo {
- MountPointInfo();
-
base::FilePath mount_device;
- std::string device_id;
- string16 device_name;
- uint64 partition_size_in_bytes;
+ StorageInfo storage_info;
};
// Mapping of mount points to MountPointInfo.

Powered by Google App Engine
This is Rietveld 408576698