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 12 matching lines...) Expand all Loading... |
23 WIFI_UNKNOWN, | 23 WIFI_UNKNOWN, |
24 }; | 24 }; |
25 | 25 |
26 explicit TrayNetworkStateObserver(TrayNetwork* tray); | 26 explicit TrayNetworkStateObserver(TrayNetwork* tray); |
27 | 27 |
28 virtual ~TrayNetworkStateObserver(); | 28 virtual ~TrayNetworkStateObserver(); |
29 | 29 |
30 // NetworkStateHandlerObserver overrides. | 30 // NetworkStateHandlerObserver overrides. |
31 virtual void NetworkManagerChanged() OVERRIDE; | 31 virtual void NetworkManagerChanged() OVERRIDE; |
32 virtual void NetworkListChanged(const NetworkStateList& networks) OVERRIDE; | 32 virtual void NetworkListChanged(const NetworkStateList& networks) OVERRIDE; |
33 virtual void NetworkServiceChanged( | 33 virtual void NetworkPropertiesUpdated( |
34 const chromeos::NetworkState* network) OVERRIDE; | 34 const chromeos::NetworkState* network) OVERRIDE; |
35 | 35 |
36 private: | 36 private: |
37 TrayNetwork* tray_; | 37 TrayNetwork* tray_; |
38 WifiState wifi_state_; // cache wifi enabled state | 38 WifiState wifi_state_; // cache wifi enabled state |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); | 40 DISALLOW_COPY_AND_ASSIGN(TrayNetworkStateObserver); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace ash | 43 } // namespace ash |
44 } // namespace internal | 44 } // namespace internal |
45 | 45 |
46 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H | 46 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_STATE_OBSERVER_H |
OLD | NEW |