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..65681b4dbf514d0f1850fdcac0f1ba1d56c65f33 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 shell_change_notify_id_; |
+ |
// The volume mount point watcher, used to manage the mounted devices. |
scoped_ptr<VolumeMountWatcherWin> volume_mount_watcher_; |