Chromium Code Reviews| Index: components/storage_monitor/storage_monitor_win.h |
| diff --git a/components/storage_monitor/storage_monitor_win.h b/components/storage_monitor/storage_monitor_win.h |
| index f59b3c3a9f16478fb2e7218816e2a3a339250fcc..d63cef5f7060ccaa23cf6469fbb4c5f6cf86f7a8 100644 |
| --- a/components/storage_monitor/storage_monitor_win.h |
| +++ b/components/storage_monitor/storage_monitor_win.h |
| @@ -50,6 +50,8 @@ class StorageMonitorWin : public StorageMonitor { |
| class PortableDeviceNotifications; |
| friend class TestStorageMonitorWin; |
| + void MediaChangeNotificationRegister(); |
| + |
| // Gets the removable storage information given a |device_path|. On success, |
| // returns true and fills in |info|. |
| bool GetDeviceInfo(const base::FilePath& device_path, |
| @@ -62,6 +64,7 @@ class StorageMonitorWin : public StorageMonitor { |
| LPARAM lparam); |
| void OnDeviceChange(UINT event_type, LPARAM data); |
| + void OnMediaChange(WPARAM wparam, LPARAM lparam); |
| // The window class of |window_|. |
| ATOM window_class_; |
| @@ -70,6 +73,9 @@ class StorageMonitorWin : public StorageMonitor { |
| HMODULE instance_; |
| HWND window_; |
| + // The handle of a registration for shell notifications. |
| + ULONG registration_handle_; |
|
vandebo (ex-Chrome)
2014/04/23 16:34:35
This could have a more descriptive name
Kevin Bailey
2014/04/23 18:06:14
|notification_registration_handle_| ? I use "handl
vandebo (ex-Chrome)
2014/04/23 18:09:27
There's lots of things that are registered... shel
rvargas (doing something else)
2014/04/23 18:45:15
Given that this is not really a handle, shell_chan
Kevin Bailey
2014/04/24 15:12:38
Done.
|
| + |
| // The volume mount point watcher, used to manage the mounted devices. |
| scoped_ptr<VolumeMountWatcherWin> volume_mount_watcher_; |