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

Unified Diff: chrome/browser/system_monitor/removable_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: Update and add unit test 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_chromeos.h
diff --git a/chrome/browser/system_monitor/removable_device_notifications_chromeos.h b/chrome/browser/system_monitor/removable_device_notifications_chromeos.h
index cae24604fbe21324fcc1740f9f51a85229d17ef2..30c320a4efcd7530a5b2b40f1ddfc464889476c3 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_chromeos.h
+++ b/chrome/browser/system_monitor/removable_device_notifications_chromeos.h
@@ -27,6 +27,7 @@ namespace chromeos {
class RemovableDeviceNotificationsCros
: public base::RefCountedThreadSafe<RemovableDeviceNotificationsCros>,
public disks::DiskMountManager::Observer {
+ public base::SystemMonitor::StorageFreeSpaceDelegate {
public:
RemovableDeviceNotificationsCros();
@@ -64,6 +65,10 @@ class RemovableDeviceNotificationsCros
const disks::DiskMountManager::MountPointInfo& mount_info,
bool has_dcim);
+ // Overriden from SystemMonitor::StorageFreeSpaceDelegate.
+ virtual void StartWatchingStorage(const FilePath& path) OVERRIDE;
+ virtual void StopWatchingStorage(const FilePath& 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