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

Unified Diff: chrome/browser/local_discovery/service_discovery_host_client.h

Issue 23709010: Replace OnIPAddressChanged with OnNetworkChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/service_discovery_host_client.h
diff --git a/chrome/browser/local_discovery/service_discovery_host_client.h b/chrome/browser/local_discovery/service_discovery_host_client.h
index dbb7071788cdf4e7d05cf59888be73f458253876..efbb02532db4323fb9c47c8bc7b4c2048bd0bbc9 100644
--- a/chrome/browser/local_discovery/service_discovery_host_client.h
+++ b/chrome/browser/local_discovery/service_discovery_host_client.h
@@ -30,7 +30,7 @@ class ServiceDiscoveryHostClient
: public base::NonThreadSafe,
public ServiceDiscoveryClient,
public content::UtilityProcessHostClient,
- public net::NetworkChangeNotifier::IPAddressObserver {
+ public net::NetworkChangeNotifier::NetworkChangeObserver {
public:
ServiceDiscoveryHostClient();
@@ -55,8 +55,9 @@ class ServiceDiscoveryHostClient
// UtilityProcessHostClient implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- // net::NetworkChangeNotifier::IPAddressObserver implementation.
- virtual void OnIPAddressChanged() OVERRIDE;
+ // net::NetworkChangeNotifier::NetworkChangeObserver implementation.
+ virtual void OnNetworkChanged(
+ net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
protected:
virtual ~ServiceDiscoveryHostClient();
@@ -76,6 +77,8 @@ class ServiceDiscoveryHostClient
void ShutdownOnIOThread();
void RestartOnIOThread();
+ void Restart();
+
void Send(IPC::Message* msg);
void SendOnIOThread(IPC::Message* msg);
« no previous file with comments | « no previous file | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698