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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_mac.h

Issue 12382005: Rename RemovableDeviceNotifications=>StorageMonitor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some includes from recent merge. 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/storage_monitor/storage_monitor_mac.h
diff --git a/chrome/browser/storage_monitor/removable_device_notifications_mac.h b/chrome/browser/storage_monitor/storage_monitor_mac.h
similarity index 87%
rename from chrome/browser/storage_monitor/removable_device_notifications_mac.h
rename to chrome/browser/storage_monitor/storage_monitor_mac.h
index 847872e2db3f034502f042b0d5cef73afad932cb..26312f26cffe7d7c793ca80329184dc55863eeb5 100644
--- a/chrome/browser/storage_monitor/removable_device_notifications_mac.h
+++ b/chrome/browser/storage_monitor/storage_monitor_mac.h
@@ -17,9 +17,9 @@ namespace chrome {
// This class posts notifications to listeners when a new disk
// is attached, removed, or changed.
-class RemovableDeviceNotificationsMac
+class StorageMonitorMac
: public StorageMonitor,
- public base::RefCountedThreadSafe<RemovableDeviceNotificationsMac> {
+ public base::RefCountedThreadSafe<StorageMonitorMac> {
public:
enum UpdateType {
UPDATE_DEVICE_ADDED,
@@ -28,7 +28,7 @@ class RemovableDeviceNotificationsMac
};
// Should only be called by browser start up code. Use GetInstance() instead.
- RemovableDeviceNotificationsMac();
+ StorageMonitorMac();
void UpdateDisk(const DiskInfoMac& info, UpdateType update_type);
@@ -42,8 +42,8 @@ class RemovableDeviceNotificationsMac
virtual uint64 GetStorageSize(const std::string& location) const OVERRIDE;
private:
- friend class base::RefCountedThreadSafe<RemovableDeviceNotificationsMac>;
- virtual ~RemovableDeviceNotificationsMac();
+ friend class base::RefCountedThreadSafe<StorageMonitorMac>;
+ virtual ~StorageMonitorMac();
static void DiskAppearedCallback(DADiskRef disk, void* context);
static void DiskDisappearedCallback(DADiskRef disk, void* context);
@@ -61,7 +61,7 @@ class RemovableDeviceNotificationsMac
// posted.
std::map<std::string, DiskInfoMac> disk_info_map_;
- DISALLOW_COPY_AND_ASSIGN(RemovableDeviceNotificationsMac);
+ DISALLOW_COPY_AND_ASSIGN(StorageMonitorMac);
};
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698