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

Unified Diff: net/dns/dns_session.cc

Issue 11567031: [net/dns] Handle TC bit on DNS response in DnsTransaction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test for timeout and fix timeout logic Created 8 years 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/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index bd4abb44ef1efffa19c6510526e69848da24561f..4c3e7641d9e4bd82271607bbb3983ede8e2b83d4 100644
--- a/net/dns/dns_session.cc
+++ b/net/dns/dns_session.cc
@@ -13,6 +13,8 @@
#include "net/base/net_errors.h"
#include "net/dns/dns_config_service.h"
#include "net/dns/dns_socket_pool.h"
+#include "net/socket/stream_socket.h"
+#include "net/udp/datagram_client_socket.h"
namespace net {
@@ -75,6 +77,12 @@ scoped_ptr<DnsSession::SocketLease> DnsSession::AllocateSocket(
return scoped_ptr<SocketLease>(lease);
}
+scoped_ptr<StreamSocket> DnsSession::AllocateTCPSocket(
+ unsigned server_index,
+ const NetLog::Source& source) {
+ return socket_pool_->AllocateTCPSocket(server_index, source);
+}
+
// Release a socket.
void DnsSession::FreeSocket(
unsigned server_index,

Powered by Google App Engine
This is Rietveld 408576698