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

Side by Side Diff: ash/system/chromeos/network/tray_network_state_observer.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Set to true when we should purge stale icons in the cache. 47 // Set to true when we should purge stale icons in the cache.
48 bool purge_icons_; 48 bool purge_icons_;
49 49
50 // Frequency at which to push NetworkStateChanged updates. This avoids 50 // Frequency at which to push NetworkStateChanged updates. This avoids
51 // unnecessarily frequent UI updates (which can be expensive). We set this 51 // unnecessarily frequent UI updates (which can be expensive). We set this
52 // to 0 for tests to eliminate timing variance. 52 // to 0 for tests to eliminate timing variance.
53 int update_frequency_; 53 int update_frequency_;
54 54
55 // Timer used to limit the frequency of NetworkStateChanged updates. 55 // Timer used to limit the frequency of NetworkStateChanged updates.
56 base::OneShotTimer<TrayNetworkStateObserver> timer_; 56 base::OneShotTimer timer_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); 58 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver);
59 }; 59 };
60 60
61 } // namespace ash 61 } // namespace ash
62 62
63 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H 63 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H
OLDNEW
« no previous file with comments | « ash/shelf/shelf_tooltip_manager.cc ('k') | ash/system/chromeos/session/logout_confirmation_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698