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_; |