| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |