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

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

Issue 141583010: Add "actively refresh services" method to ServiceDiscoveryClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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.cc
diff --git a/chrome/browser/local_discovery/service_discovery_host_client.cc b/chrome/browser/local_discovery/service_discovery_host_client.cc
index 06f491af6aa8681a2626db7fd6c0c0e3f6720b24..8b75fc612cb500b08367264929605af37ba523da 100644
--- a/chrome/browser/local_discovery/service_discovery_host_client.cc
+++ b/chrome/browser/local_discovery/service_discovery_host_client.cc
@@ -82,6 +82,14 @@ class ServiceDiscoveryHostClient::ServiceWatcherProxy : public ServiceWatcher {
host_->Send(new LocalDiscoveryMsg_DiscoverServices(id_, force_update));
}
+ virtual void SetActivelyRefreshServices(
+ bool actively_refresh_services) OVERRIDE {
+ DVLOG(1) << "ServiceWatcher::SetActivelyRefreshServices with id " << id_;
+ DCHECK(started_);
+ host_->Send(new LocalDiscoveryMsg_SetActivelyRefreshServices(
+ id_, actively_refresh_services));
+ }
+
virtual std::string GetServiceType() const OVERRIDE {
return service_type_;
}

Powered by Google App Engine
This is Rietveld 408576698