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

Unified Diff: net/dns/mdns_client_impl.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 | « net/dns/mdns_client.h ('k') | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client_impl.h
diff --git a/net/dns/mdns_client_impl.h b/net/dns/mdns_client_impl.h
index 667632b1fdc1fcfcf66e54435ae09f435f928d1d..fbdca4fd757c9ad9a4281ee9f3cb41e0ebcaf051 100644
--- a/net/dns/mdns_client_impl.h
+++ b/net/dns/mdns_client_impl.h
@@ -181,24 +181,14 @@ class MDnsClientImpl : public MDnsClient {
int flags,
const MDnsTransaction::ResultCallback& callback) OVERRIDE;
- // Returns true when the client is listening for network packets.
- bool IsListeningForTests();
-
- bool AddListenRef();
- void SubtractListenRef();
+ virtual bool StartListening() OVERRIDE;
+ virtual void StopListening() OVERRIDE;
+ virtual bool IsListening() const OVERRIDE;
Core* core() { return core_.get(); }
private:
- // This method causes the client to stop listening for packets. The
- // call for it is deferred through the message loop after the last
- // listener is removed. If another listener is added after a
- // shutdown is scheduled but before it actually runs, the shutdown
- // will be canceled.
- void Shutdown();
-
scoped_ptr<Core> core_;
- int listen_refs_;
scoped_ptr<MDnsConnection::SocketFactory> socket_factory_;
« no previous file with comments | « net/dns/mdns_client.h ('k') | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698