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

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

Powered by Google App Engine
This is Rietveld 408576698