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

Unified Diff: net/dns/mdns_client_impl.h

Issue 2684113002: [ON HOLD] Deallocate read buffer in MDnsClientImpl::SocketHandler if done reading (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | 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 f86de96f22213cd5027eda6855021f4c376e7ff9..3e2c0d944181cba4140fddf9ec38d1191e002b10 100644
--- a/net/dns/mdns_client_impl.h
+++ b/net/dns/mdns_client_impl.h
@@ -76,7 +76,7 @@ class NET_EXPORT_PRIVATE MDnsConnection {
void Send(const scoped_refptr<IOBuffer>& buffer, unsigned size);
private:
- int DoLoop(int rv);
+ int DoRead(int rv);
void OnDatagramReceived(int rv);
// Callback for when sending a query has finished.
@@ -85,7 +85,7 @@ class NET_EXPORT_PRIVATE MDnsConnection {
std::unique_ptr<DatagramServerSocket> socket_;
MDnsConnection* connection_;
IPEndPoint recv_addr_;
- DnsResponse response_;
+ std::unique_ptr<DnsResponse> response_;
IPEndPoint multicast_addr_;
bool send_in_progress_;
std::queue<std::pair<scoped_refptr<IOBuffer>, unsigned> > send_queue_;
« no previous file with comments | « no previous file | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698