Chromium Code Reviews

Unified Diff: chrome/browser/chromeos/network_state_notifier.h

Issue 4235005: Push for ers:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/chromeos/network_state_notifier.h
===================================================================
--- chrome/browser/chromeos/network_state_notifier.h (revision 64886)
+++ chrome/browser/chromeos/network_state_notifier.h (working copy)
@@ -42,10 +42,10 @@
};
// NetworkStateNotifier sends notification when network state has
-// chagned. Notificatio is sent in UI thread.
+// chagned. Notification is sent in UI thread.
// TODO(oshima): port this to other platform. merge with
// NetworkChangeNotifier if possible.
-class NetworkStateNotifier : public NetworkLibrary::Observer {
+class NetworkStateNotifier : public NetworkLibrary::NetworkManagerObserver {
public:
// Returns the singleton instance of the network state notifier;
static NetworkStateNotifier* Get();
@@ -59,8 +59,8 @@
return Get()->state_ == NetworkStateDetails::CONNECTED;
}
- // NetworkLibrary::Observer implementation.
- virtual void NetworkChanged(NetworkLibrary* cros);
+ // NetworkLibrary::NetworkManagerObserver implementation.
+ virtual void OnNetworkManagerChanged(NetworkLibrary* cros);
private:
friend struct DefaultSingletonTraits<NetworkStateNotifier>;
@@ -69,7 +69,7 @@
static NetworkStateDetails::State RetrieveState();
NetworkStateNotifier();
- virtual ~NetworkStateNotifier() {}
+ virtual ~NetworkStateNotifier();
// Update the current state and sends notification to observers.
// This should be invoked in UI thread.
« no previous file with comments | « chrome/browser/chromeos/network_message_observer.cc ('k') | chrome/browser/chromeos/network_state_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine