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

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: respond to 2nd review 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
« no previous file with comments | « net/dns/dns_session.h ('k') | net/dns/dns_socket_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index bd4abb44ef1efffa19c6510526e69848da24561f..0b2e49b2615f4b0290814881a9c44576139ec4e9 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::CreateTCPSocket(
+ unsigned server_index,
+ const NetLog::Source& source) {
+ return socket_pool_->CreateTCPSocket(server_index, source);
+}
+
// Release a socket.
void DnsSession::FreeSocket(
unsigned server_index,
« no previous file with comments | « net/dns/dns_session.h ('k') | net/dns/dns_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698