Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/network_state_informer.h

Issue 23684042: Eliminate NetworkManagerChanged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698