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

Unified Diff: ash/system/monitor/tray_monitor.h

Issue 11345017: Create ash memory monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make tray linux specific Created 8 years, 1 month 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
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/system/monitor/tray_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/monitor/tray_monitor.h
diff --git a/ash/system/monitor/tray_monitor.h b/ash/system/monitor/tray_monitor.h
new file mode 100644
index 0000000000000000000000000000000000000000..c397df4cb044693061df853d7a1effdc5ec20266
--- /dev/null
+++ b/ash/system/monitor/tray_monitor.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_DATE_TRAY_MONITOR_H_
+#define ASH_SYSTEM_DATE_TRAY_MONITOR_H_
+
+#include "ash/system/tray/system_tray_item.h"
+#include "base/timer.h"
+
+namespace views {
+class Label;
+}
+
+namespace ash {
+namespace internal {
+
+class TrayMonitor : public SystemTrayItem {
+ public:
+ TrayMonitor();
+ virtual ~TrayMonitor();
+
+ private:
+ // Overridden from SystemTrayItem.
+ virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
+ virtual void DestroyTrayView() OVERRIDE;
+
+ void RefreshStats();
+
+ views::Label* label_;
+ base::RepeatingTimer<TrayMonitor> refresh_timer_;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayMonitor);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_DATE_TRAY_MONITOR_H_
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/system/monitor/tray_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698