| 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" |
| 11 #include "base/macros.h" |
| 11 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 12 #include "chromeos/network/network_state_handler_observer.h" | 13 #include "chromeos/network/network_state_handler_observer.h" |
| 13 | 14 |
| 14 namespace ash { | 15 namespace ash { |
| 15 | 16 |
| 16 class TrayNetworkStateObserver : public chromeos::NetworkStateHandlerObserver { | 17 class TrayNetworkStateObserver : public chromeos::NetworkStateHandlerObserver { |
| 17 public: | 18 public: |
| 18 class Delegate { | 19 class Delegate { |
| 19 public: | 20 public: |
| 20 // Called when any interesting network changes occur. The frequency of this | 21 // Called when any interesting network changes occur. The frequency of this |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 55 |
| 55 // Timer used to limit the frequency of NetworkStateChanged updates. | 56 // Timer used to limit the frequency of NetworkStateChanged updates. |
| 56 base::OneShotTimer timer_; | 57 base::OneShotTimer timer_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); | 59 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace ash | 62 } // namespace ash |
| 62 | 63 |
| 63 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H | 64 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H |
| OLD | NEW |