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

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

Issue 11573048: [Media Galleries] Move RemovableStorageInfo notifications to chrome namespace (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing up tests Created 7 years, 11 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/portable_device_watcher_win.h
diff --git a/chrome/browser/system_monitor/portable_device_watcher_win.h b/chrome/browser/system_monitor/portable_device_watcher_win.h
index 86f153583184b6ad39dbf3871855ab9ed418f85a..9e7d298f1df9282abde4dee16f5c623bb90b06ce 100644
--- a/chrome/browser/system_monitor/portable_device_watcher_win.h
+++ b/chrome/browser/system_monitor/portable_device_watcher_win.h
@@ -14,7 +14,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/string16.h"
-#include "base/system_monitor/system_monitor.h"
+#include "chrome/browser/system_monitor/removable_storage_notifications.h"
namespace base {
class SequencedTaskRunner;
@@ -29,8 +29,8 @@ class TestPortableDeviceWatcherWin;
}
// This class watches the portable device mount points and sends notifications
-// to base::SystemMonitor about the attached/detached media transfer protocol
-// (MTP) devices. This is a singleton class instantiated by
+// about the attached/detached media transfer protocol (MTP) devices.
+// This is a singleton class instantiated by
// RemovableDeviceNotificationsWindowWin. This class is created, destroyed and
// operates on the UI thread, except for long running tasks it spins off to a
// SequencedTaskRunner.
@@ -67,6 +67,8 @@ class PortableDeviceWatcherWin {
};
typedef std::vector<DeviceDetails> Devices;
+ // TODO(gbillock): Change to take the device notifications object as
+ // an argument.
PortableDeviceWatcherWin();
virtual ~PortableDeviceWatcherWin();
@@ -75,7 +77,7 @@ class PortableDeviceWatcherWin {
void Init(HWND hwnd);
// Processes DEV_BROADCAST_DEVICEINTERFACE messages and triggers a
- // SystemMonitor notification if appropriate.
+ // notification if appropriate.
void OnWindowMessage(UINT event_type, LPARAM data);
// Gets the information of the MTP storage specified by |storage_device_id|.
@@ -91,7 +93,7 @@ class PortableDeviceWatcherWin {
// Key: MTP device storage unique id.
// Value: Metadata for the given storage.
- typedef std::map<std::string, base::SystemMonitor::RemovableStorageInfo>
+ typedef std::map<std::string, RemovableStorageNotifications::StorageInfo>
MTPStorageMap;
// Key: MTP device plug and play ID string.

Powered by Google App Engine
This is Rietveld 408576698