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

Unified Diff: net/dns/mdns_client.h

Issue 17922002: Add an explicit way of forcing the MDnsClient to listen on the network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | « chrome/browser/local_discovery/service_discovery_client_unittest.cc ('k') | net/dns/mdns_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client.h
diff --git a/net/dns/mdns_client.h b/net/dns/mdns_client.h
index f1f5adbe76db669c234fbc74f6c9d396d914779a..09d491b0b15fb582922e8c13d2bc05337b7ebcab 100644
--- a/net/dns/mdns_client.h
+++ b/net/dns/mdns_client.h
@@ -144,6 +144,10 @@ class NET_EXPORT MDnsClient {
int flags,
const MDnsTransaction::ResultCallback& callback) = 0;
+ virtual bool StartListening() = 0;
+ virtual void StopListening() = 0;
szym 2013/07/02 17:27:56 Is it safe to call this from callbacks?
Noam Samuel 2013/07/02 18:08:22 No, though I think in this case it makes sense to
+ virtual bool GetListening() const = 0;
gene 2013/07/02 03:39:16 IsListening() ?
szym 2013/07/02 17:27:56 I concur it should be IsListening.
Noam Samuel 2013/07/02 18:08:22 Done.
+
// Lazily create and return static instance for MDnsClient.
static MDnsClient* GetInstance();
« no previous file with comments | « chrome/browser/local_discovery/service_discovery_client_unittest.cc ('k') | net/dns/mdns_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698