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

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

Issue 23851008: Added cache flush on network change to ServiceDiscoveryHostClient (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
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);

Powered by Google App Engine
This is Rietveld 408576698