summaryrefslogtreecommitdiffstats
path: root/chrome/common/local_discovery
diff options
context:
space:
mode:
authornoamsml@chromium.org <noamsml@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-30 06:46:36 +0000
committernoamsml@chromium.org <noamsml@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-30 06:46:36 +0000
commit7a11a32c40f8530c9eb921a116e070f57e4f9379 (patch)
treeed24a3be42dd306d602e5e7d089074195811ebf9 /chrome/common/local_discovery
parent3bdbf7feeb01e3703312a42c8d4d0808e5d5aa01 (diff)
downloadchromium_src-7a11a32c40f8530c9eb921a116e070f57e4f9379.zip
chromium_src-7a11a32c40f8530c9eb921a116e070f57e4f9379.tar.gz
chromium_src-7a11a32c40f8530c9eb921a116e070f57e4f9379.tar.bz2
Add "actively refresh services" method to ServiceDiscoveryClient
Add method to ServiceDiscoveryClient that will allow it to actively refresh stale services when their TTL runs out. BUG=336883 Review URL: https://codereview.chromium.org/141583010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/local_discovery')
-rw-r--r--chrome/common/local_discovery/local_discovery_messages.h5
-rw-r--r--chrome/common/local_discovery/service_discovery_client.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/local_discovery/local_discovery_messages.h b/chrome/common/local_discovery/local_discovery_messages.h
index 61678ec..f15bad6 100644
--- a/chrome/common/local_discovery/local_discovery_messages.h
+++ b/chrome/common/local_discovery/local_discovery_messages.h
@@ -68,6 +68,11 @@ IPC_MESSAGE_CONTROL2(LocalDiscoveryMsg_DiscoverServices,
uint64 /* id */,
bool /* force_update */)
+// Discovers new services.
+IPC_MESSAGE_CONTROL2(LocalDiscoveryMsg_SetActivelyRefreshServices,
+ uint64 /* id */,
+ bool /* actively_refresh_services */)
+
// Destroys watcher in utility process.
IPC_MESSAGE_CONTROL1(LocalDiscoveryMsg_DestroyWatcher,
uint64 /* id */)
diff --git a/chrome/common/local_discovery/service_discovery_client.h b/chrome/common/local_discovery/service_discovery_client.h
index 5a86614..9b1b6ba 100644
--- a/chrome/common/local_discovery/service_discovery_client.h
+++ b/chrome/common/local_discovery/service_discovery_client.h
@@ -67,6 +67,8 @@ class ServiceWatcher {
// Probe for services of this type.
virtual void DiscoverNewServices(bool force_update) = 0;
+ virtual void SetActivelyRefreshServices(bool actively_refresh_services) = 0;
+
virtual std::string GetServiceType() const = 0;
};