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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_linux.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/removable_device_notifications_linux.h
diff --git a/chrome/browser/system_monitor/removable_device_notifications_linux.h b/chrome/browser/system_monitor/removable_device_notifications_linux.h
index cead6ed08431b6876d1cd39fc8c826f3ea95fe2e..88cf8dffa2e249c51f45ee8595aca6bd43727b6d 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_linux.h
+++ b/chrome/browser/system_monitor/removable_device_notifications_linux.h
@@ -37,7 +37,8 @@ namespace chrome {
class RemovableDeviceNotificationsLinux
: public base::RefCountedThreadSafe<RemovableDeviceNotificationsLinux,
- content::BrowserThread::DeleteOnFileThread> {
+ content::BrowserThread::DeleteOnFileThread>,
+ public base::SystemMonitor::StorageFreeSpaceDelegate {
public:
// Should only be called by browser start up code. Use GetInstance() instead.
explicit RemovableDeviceNotificationsLinux(const FilePath& path);
@@ -108,6 +109,10 @@ class RemovableDeviceNotificationsLinux
// device SystemMonitor is notified.
void AddNewMount(const FilePath& mount_device, const FilePath& mount_point);
+ // Overriden from SystemMonitor::StorageFreeSpaceDelegate.
+ virtual bool StartWatchingStorage(const FilePath::StringType& path) OVERRIDE;
+ virtual bool StopWatchingStorage(const FilePath::StringType& path) OVERRIDE;
+
// Whether Init() has been called or not.
bool initialized_;

Powered by Google App Engine
This is Rietveld 408576698