| 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 void Init(); | 58 void Init(); |
| 59 | 59 |
| 60 // Adds observer to be notified when network state has been changed. | 60 // Adds observer to be notified when network state has been changed. |
| 61 void AddObserver(NetworkStateInformerObserver* observer); | 61 void AddObserver(NetworkStateInformerObserver* observer); |
| 62 | 62 |
| 63 // Removes observer. | 63 // Removes observer. |
| 64 void RemoveObserver(NetworkStateInformerObserver* observer); | 64 void RemoveObserver(NetworkStateInformerObserver* observer); |
| 65 | 65 |
| 66 // NetworkStateHandlerObserver implementation: | 66 // NetworkStateHandlerObserver implementation: |
| 67 virtual void NetworkManagerChanged() OVERRIDE; | |
| 68 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; | 67 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; |
| 69 | 68 |
| 70 // NetworkPortalDetector::Observer implementation: | 69 // NetworkPortalDetector::Observer implementation: |
| 71 virtual void OnPortalDetectionCompleted( | 70 virtual void OnPortalDetectionCompleted( |
| 72 const NetworkState* network, | 71 const NetworkState* network, |
| 73 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; | 72 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; |
| 74 | 73 |
| 75 // content::NotificationObserver implementation. | 74 // content::NotificationObserver implementation. |
| 76 virtual void Observe(int type, | 75 virtual void Observe(int type, |
| 77 const content::NotificationSource& source, | 76 const content::NotificationSource& source, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 104 | 103 |
| 105 ObserverList<NetworkStateInformerObserver> observers_; | 104 ObserverList<NetworkStateInformerObserver> observers_; |
| 106 content::NotificationRegistrar registrar_; | 105 content::NotificationRegistrar registrar_; |
| 107 | 106 |
| 108 base::WeakPtrFactory<NetworkStateInformer> weak_ptr_factory_; | 107 base::WeakPtrFactory<NetworkStateInformer> weak_ptr_factory_; |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace chromeos | 110 } // namespace chromeos |
| 112 | 111 |
| 113 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ | 112 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ |
| OLD | NEW |