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

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
Index: net/dns/mdns_client_impl.h
diff --git a/net/dns/mdns_client_impl.h b/net/dns/mdns_client_impl.h
index cb6a0ae8f817056dadf1a582044cd73a1a5c3224..f80178791e1ca1d33299cf19e9f070a1d5c84698 100644
--- a/net/dns/mdns_client_impl.h
+++ b/net/dns/mdns_client_impl.h
@@ -174,24 +174,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 GetListening() 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_;
« net/dns/mdns_client.h ('K') | « 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