| Index: chrome/browser/system_monitor/removable_device_notifications_linux.h
|
| diff --git a/chrome/browser/system_monitor/removable_device_notifications_linux.h b/chrome/browser/system_monitor/removable_device_notifications_linux.h
|
| index ee2ff83e81eaa96b5c77dd636073fa66b8c06c6c..25b3f1a6068e12e5a115402798f67a4e12b80cba 100644
|
| --- a/chrome/browser/system_monitor/removable_device_notifications_linux.h
|
| +++ b/chrome/browser/system_monitor/removable_device_notifications_linux.h
|
| @@ -28,10 +28,12 @@
|
| class FilePath;
|
|
|
| // Gets device information given a |device_path|. On success, fills in
|
| -// |unique_id|, |name|, and |removable|.
|
| +// |unique_id|, |name|, |removable| and |device_partition_size|.
|
| typedef void (*GetDeviceInfoFunc)(const FilePath& device_path,
|
| - std::string* unique_id, string16* name,
|
| - bool* removable);
|
| + std::string* unique_id,
|
| + string16* name,
|
| + bool* removable,
|
| + string16* device_partition_size);
|
|
|
| namespace chrome {
|
|
|
| @@ -56,6 +58,10 @@ class RemovableDeviceNotificationsLinux
|
| const FilePath& path,
|
| base::SystemMonitor::RemovableStorageInfo* device_info) const;
|
|
|
| + // Returns the storage size information of the device present at |location|.
|
| + // If the requested information is unavailable, returns an empty string.
|
| + string16 GetStorageSize(const std::string& location);
|
| +
|
| protected:
|
| // Only for use in unit tests.
|
| RemovableDeviceNotificationsLinux(const FilePath& path,
|
| @@ -75,12 +81,13 @@ class RemovableDeviceNotificationsLinux
|
| friend struct content::BrowserThread::DeleteOnThread<
|
| content::BrowserThread::FILE>;
|
|
|
| - // Structure to save mounted device information such as device path and unique
|
| - // identifier.
|
| + // Structure to save mounted device information such as device path, unique
|
| + // identifier, device name and partition size.
|
| struct MountPointInfo {
|
| FilePath mount_device;
|
| std::string device_id;
|
| string16 device_name;
|
| + string16 device_partition_size;
|
| };
|
|
|
| // Mapping of mount points to MountPointInfo.
|
|
|