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

Unified Diff: components/storage_monitor/storage_monitor_win.h

Issue 231063002: Add notification for media changed, and notify volume mount watcher when it occurs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Name and constant change Created 6 years, 8 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
« no previous file with comments | « no previous file | components/storage_monitor/storage_monitor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | components/storage_monitor/storage_monitor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698