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

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

Issue 10909259: Share MediaStorageUtil common code among platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win tests Created 8 years, 3 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_mac.h
diff --git a/chrome/browser/system_monitor/removable_device_notifications_mac.h b/chrome/browser/system_monitor/removable_device_notifications_mac.h
index 70a3e19162ae39f4eda2d63bf0c79ac0b0ee5f57..aa6f31ab2ef789c7723d61a0d75ca48015e035ce 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_mac.h
+++ b/chrome/browser/system_monitor/removable_device_notifications_mac.h
@@ -15,6 +15,9 @@
namespace chrome {
+class RemovableDeviceNotificationsMac;
+typedef RemovableDeviceNotificationsMac RemovableDeviceNotifications;
+
// This class posts notifications to base::SystemMonitor when a new disk
// is attached, removed, or changed.
class RemovableDeviceNotificationsMac :
@@ -26,9 +29,12 @@ class RemovableDeviceNotificationsMac :
UPDATE_DEVICE_REMOVED,
};
+ // Should only be called by browser start up code. Use GetInstance() instead.
RemovableDeviceNotificationsMac();
virtual ~RemovableDeviceNotificationsMac();
+ static RemovableDeviceNotificationsMac* GetInstance();
+
void UpdateDisk(const DiskInfoMac& info, UpdateType update_type);
bool GetDeviceInfoForPath(

Powered by Google App Engine
This is Rietveld 408576698