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 31f2a091a9f311c9ac504b596bdb05d989d439e8..1e6a9bd64f9ace936c6699a94661ed155eee35f5 100644 |
--- a/chrome/browser/local_discovery/service_discovery_host_client.h |
+++ b/chrome/browser/local_discovery/service_discovery_host_client.h |
@@ -12,6 +12,7 @@ |
#include "base/threading/non_thread_safe.h" |
#include "chrome/common/local_discovery/service_discovery_client.h" |
#include "content/public/browser/utility_process_host_client.h" |
+#include "net/base/network_change_notifier.h" |
namespace base { |
class TaskRunner; |
@@ -25,9 +26,11 @@ namespace local_discovery { |
// Implementation of ServiceDiscoveryClient that delegates all functionality to |
// utility process. |
-class ServiceDiscoveryHostClient : public base::NonThreadSafe, |
- public ServiceDiscoveryClient, |
- public content::UtilityProcessHostClient { |
+class ServiceDiscoveryHostClient |
+ : public base::NonThreadSafe, |
+ public ServiceDiscoveryClient, |
+ public content::UtilityProcessHostClient, |
+ public net::NetworkChangeNotifier::IPAddressObserver { |
public: |
ServiceDiscoveryHostClient(); |
@@ -52,6 +55,9 @@ class ServiceDiscoveryHostClient : public base::NonThreadSafe, |
// UtilityProcessHostClient implementation. |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ // net::NetworkChangeNotifier::IPAddressObserver implementation. |
+ virtual void OnIPAddressChanged() OVERRIDE; |
+ |
protected: |
virtual ~ServiceDiscoveryHostClient(); |
@@ -68,6 +74,7 @@ class ServiceDiscoveryHostClient : public base::NonThreadSafe, |
void StartOnIOThread(); |
void ShutdownOnIOThread(); |
+ void RestartOnIOThread(); |
void Send(IPC::Message* msg); |
void SendOnIOThread(IPC::Message* msg); |