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_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H_ | 5 #ifndef ASH_SYSTEM_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H_ | 6 #define ASH_SYSTEM_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "chromeos/network/network_state_handler_observer.h" | 10 #include "chromeos/network/network_state_handler_observer.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 class TrayNetworkStateObserver : public chromeos::NetworkStateHandlerObserver { | 14 class TrayNetworkStateObserver : public chromeos::NetworkStateHandlerObserver { |
15 public: | 15 public: |
16 class Delegate { | 16 class Delegate { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int update_frequency_; | 51 int update_frequency_; |
52 | 52 |
53 // Timer used to limit the frequency of NetworkStateChanged updates. | 53 // Timer used to limit the frequency of NetworkStateChanged updates. |
54 base::OneShotTimer timer_; | 54 base::OneShotTimer timer_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); | 56 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace ash | 59 } // namespace ash |
60 | 60 |
61 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H_ | 61 #endif // ASH_SYSTEM_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H_ |
OLD | NEW |