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

Unified Diff: net/dns/mdns_client.cc

Issue 87693002: Refactored to make MDnsSocketFactory return array of sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client.cc
diff --git a/net/dns/mdns_client.cc b/net/dns/mdns_client.cc
index d0273c5784a58a29f24b117676f2e5152c6f3cce..e8d6660584f660b673e58a604f3f5a8f8b3a2b79 100644
--- a/net/dns/mdns_client.cc
+++ b/net/dns/mdns_client.cc
@@ -26,9 +26,13 @@ IPEndPoint GetMDnsIPEndPoint(const char* address) {
} // namespace
// static
+scoped_ptr<MDnsSocketFactory> MDnsSocketFactory::CreateDefault() {
+ return scoped_ptr<MDnsSocketFactory>(new MDnsSocketFactoryImpl);
+}
+
+// static
scoped_ptr<MDnsClient> MDnsClient::CreateDefault() {
- return scoped_ptr<MDnsClient>(
- new MDnsClientImpl(MDnsConnection::SocketFactory::CreateDefault()));
+ return scoped_ptr<MDnsClient>(new MDnsClientImpl());
}
IPEndPoint GetMDnsIPEndPoint(AddressFamily address_family) {
« no previous file with comments | « net/dns/mdns_client.h ('k') | net/dns/mdns_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698