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

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

Issue 10917166: Extend the capability of SystemMonitor to support watching storage free space change (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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/media_device_notifications_chromeos.h
diff --git a/chrome/browser/system_monitor/media_device_notifications_chromeos.h b/chrome/browser/system_monitor/media_device_notifications_chromeos.h
index c0672d14b6c8008aa1ae09a82fd63655e4d71d9d..dc931027ac36c269983762e316270ca3ba9fea3e 100644
--- a/chrome/browser/system_monitor/media_device_notifications_chromeos.h
+++ b/chrome/browser/system_monitor/media_device_notifications_chromeos.h
@@ -25,7 +25,8 @@ namespace chromeos {
class MediaDeviceNotifications
: public base::RefCountedThreadSafe<MediaDeviceNotifications>,
- public disks::DiskMountManager::Observer {
+ public disks::DiskMountManager::Observer,
+ public base::SystemMonitor::StorageFreeSpaceNotification {
public:
MediaDeviceNotifications();
@@ -61,6 +62,10 @@ class MediaDeviceNotifications
void AddMountedPathOnUIThread(
const disks::DiskMountManager::MountPointInfo& mount_info);
+ // Overriden from SystemMonitor::StorageFreeSpaceNotification.
+ virtual bool StartWatchingStorage(const FilePath::StringType& path) OVERRIDE;
+ virtual bool StopWatchingStorage(const FilePath::StringType& path) OVERRIDE;
+
// Mapping of relevant mount points and their corresponding mount devices.
// Only accessed on the UI thread.
MountMap mount_map_;

Powered by Google App Engine
This is Rietveld 408576698