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

Unified Diff: net/dns/dns_client.cc

Issue 10878090: Keep pool of pre-connected DNS sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a single, separate DnsSocketPool object Created 8 years, 3 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/dns_session.h » ('j') | net/dns/dns_session.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_client.cc
diff --git a/net/dns/dns_client.cc b/net/dns/dns_client.cc
index b9c2279a140c2635dc1eb8120ee3fa0f01e86d2e..23629644cff47d6fd778f9ec4c0dce993527e993 100644
--- a/net/dns/dns_client.cc
+++ b/net/dns/dns_client.cc
@@ -10,6 +10,7 @@
#include "net/dns/address_sorter.h"
#include "net/dns/dns_config_service.h"
#include "net/dns/dns_session.h"
+#include "net/dns/dns_socket_pool.h"
#include "net/dns/dns_transaction.h"
#include "net/socket/client_socket_factory.h"
@@ -29,6 +30,7 @@ class DnsClientImpl : public DnsClient {
if (config.IsValid()) {
session_ = new DnsSession(config,
ClientSocketFactory::GetDefaultFactory(),
+ DnsSocketPool::MakeDefault().Pass(),
base::Bind(&base::RandInt),
net_log_);
factory_ = DnsTransactionFactory::CreateFactory(session_);
« no previous file with comments | « no previous file | net/dns/dns_session.h » ('j') | net/dns/dns_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698