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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_window_win.h

Issue 11088012: [Win, MediaGallery] Enumerate and handle mtp device attach/detach events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 8 years, 2 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
Index: chrome/browser/system_monitor/removable_device_notifications_window_win.h
diff --git a/chrome/browser/system_monitor/removable_device_notifications_window_win.h b/chrome/browser/system_monitor/removable_device_notifications_window_win.h
index 173e7ec56287dca09d87a73df7d08f8d2a8195c9..ed6dccd36d1e701e865532c0c2dac4ab0adc7e53 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_window_win.h
+++ b/chrome/browser/system_monitor/removable_device_notifications_window_win.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/system_monitor/system_monitor.h"
+#include "chrome/browser/system_monitor/portable_device_watcher_win.h"
#include "chrome/browser/system_monitor/volume_mount_watcher_win.h"
class FilePath;
@@ -42,8 +43,9 @@ class RemovableDeviceNotificationsWindowWin {
private:
friend class TestRemovableDeviceNotificationsWindowWin;
- explicit RemovableDeviceNotificationsWindowWin(
- VolumeMountWatcherWin* volume_mount_watcher);
+ RemovableDeviceNotificationsWindowWin(
+ VolumeMountWatcherWin* volume_mount_watcher,
+ PortableDeviceWatcherWin* portable_device_watcher);
// Gets the removable storage information given a |device_path|. On success,
// returns true and fills in |device_location|, |unique_id|, |name| and
@@ -72,6 +74,9 @@ class RemovableDeviceNotificationsWindowWin {
// Store the volume mount point watcher to manage the mounted devices.
scoped_refptr<VolumeMountWatcherWin> volume_mount_watcher_;
+ // Store the portable device watcher to manage mtp devices.
+ scoped_refptr<PortableDeviceWatcherWin> portable_device_watcher_;
+
DISALLOW_COPY_AND_ASSIGN(RemovableDeviceNotificationsWindowWin);
};

Powered by Google App Engine
This is Rietveld 408576698