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