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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_window_win.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_window_win.h
diff --git a/chrome/browser/system_monitor/removable_device_notifications_window_win.h b/chrome/browser/system_monitor/removable_device_notifications_window_win.h
index b05782677af63d7eaf2174182c47b9d159c37b4a..6a2efc3ba51f3b739905249c3cebaecc440f50b1 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_window_win.h
+++ b/chrome/browser/system_monitor/removable_device_notifications_window_win.h
@@ -19,7 +19,8 @@ typedef LRESULT (*VolumeNameFunc)(LPCWSTR drive,
namespace chrome {
class RemovableDeviceNotificationsWindowWin
- : public base::RefCountedThreadSafe<RemovableDeviceNotificationsWindowWin> {
+ : public base::RefCountedThreadSafe<RemovableDeviceNotificationsWindowWin>,
+ public base::SystemMonitor::StorageFreeSpaceDelegate {
public:
RemovableDeviceNotificationsWindowWin();
// Only for use in unit tests.
@@ -54,6 +55,10 @@ class RemovableDeviceNotificationsWindowWin
const FilePath::StringType& device_name,
const FilePath& path);
+ // Overriden from SystemMonitor::StorageFreeSpaceDelegate.
+ virtual void StartWatchingStorage(const FilePath& path) OVERRIDE;
+ virtual void StopWatchingStorage(const FilePath& path) OVERRIDE;
+
// The window class of |window_|.
ATOM atom_;

Powered by Google App Engine
This is Rietveld 408576698