| Index: chrome/browser/system_monitor/removable_device_notifications_chromeos.h
|
| diff --git a/chrome/browser/system_monitor/removable_device_notifications_chromeos.h b/chrome/browser/system_monitor/removable_device_notifications_chromeos.h
|
| index cae24604fbe21324fcc1740f9f51a85229d17ef2..404540cad1069cb041a24ade2038b820a175f68f 100644
|
| --- a/chrome/browser/system_monitor/removable_device_notifications_chromeos.h
|
| +++ b/chrome/browser/system_monitor/removable_device_notifications_chromeos.h
|
| @@ -28,8 +28,11 @@ class RemovableDeviceNotificationsCros
|
| : public base::RefCountedThreadSafe<RemovableDeviceNotificationsCros>,
|
| public disks::DiskMountManager::Observer {
|
| public:
|
| + // Should only be called by browser start up code. Use GetInstance() instead.
|
| RemovableDeviceNotificationsCros();
|
|
|
| + static RemovableDeviceNotificationsCros* GetInstance();
|
| +
|
| virtual void DiskChanged(disks::DiskMountManagerEventType event,
|
| const disks::DiskMountManager::Disk* disk) OVERRIDE;
|
| virtual void DeviceChanged(disks::DiskMountManagerEventType event,
|
| @@ -39,11 +42,18 @@ class RemovableDeviceNotificationsCros
|
| MountError error_code,
|
| const disks::DiskMountManager::MountPointInfo& mount_info) OVERRIDE;
|
|
|
| + // Finds the device that contains |path| and populates |device_info|.
|
| + // Returns false if unable to find the device.
|
| + bool GetDeviceInfoForPath(
|
| + const FilePath& path,
|
| + base::SystemMonitor::RemovableStorageInfo* device_info) const;
|
| +
|
| private:
|
| friend class base::RefCountedThreadSafe<RemovableDeviceNotificationsCros>;
|
|
|
| - // Mapping of mount points to mount device IDs.
|
| - typedef std::map<std::string, std::string> MountMap;
|
| + // Mapping of mount path to removable mass storage info.
|
| + typedef std::map<std::string, base::SystemMonitor::RemovableStorageInfo>
|
| + MountMap;
|
|
|
| // Private to avoid code deleting the object.
|
| virtual ~RemovableDeviceNotificationsCros();
|
|
|