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

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

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 years, 10 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 0d16ba63bf11b80d1d8c7a7dbb39e820b74622a9..ff0d259372117df4442fd9989eb95d5c2f78ce36 100644
--- a/chrome/browser/system_monitor/portable_device_watcher_win.h
+++ b/chrome/browser/system_monitor/portable_device_watcher_win.h
@@ -91,6 +91,10 @@ class PortableDeviceWatcherWin {
static string16 GetStoragePathFromStorageId(
const std::string& storage_unique_id);
+ // Set the volume notifications object to be used when new
+ // devices are found.
+ void SetNotifications(RemovableStorageNotifications::Receiver* notifications);
+
private:
friend class test::TestPortableDeviceWatcherWin;
@@ -132,6 +136,9 @@ class PortableDeviceWatcherWin {
// Used by |media_task_runner_| to create cancelable callbacks.
base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_;
+ // The notifications object to use to signal newly attached devices.
+ RemovableStorageNotifications::Receiver* storage_notifications_;
+
DISALLOW_COPY_AND_ASSIGN(PortableDeviceWatcherWin);
};

Powered by Google App Engine
This is Rietveld 408576698