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

Side by Side 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: New files 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_DATE_TRAY_MONITOR_H_
6 #define ASH_SYSTEM_DATE_TRAY_MONITOR_H_
7
8 #include "ash/system/tray/system_tray_item.h"
9 #include "base/timer.h"
10
11 namespace views {
12 class Label;
13 }
14
15 namespace ash {
16 namespace internal {
17
18 class TrayMonitor : public SystemTrayItem {
19 public:
20 TrayMonitor();
21 virtual ~TrayMonitor();
22
23 private:
24 // Overridden from SystemTrayItem.
25 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
26
27 void RefreshStats();
28
29 views::Label* label_;
30 base::RepeatingTimer<TrayMonitor> refresh_timer_;
31
32 DISALLOW_COPY_AND_ASSIGN(TrayMonitor);
33 };
34
35 } // namespace internal
36 } // namespace ash
37
38 #endif // ASH_SYSTEM_DATE_TRAY_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698