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

Unified Diff: net/dns/dns_socket_pool.h

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.cc ('k') | net/dns/dns_socket_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_socket_pool.h
diff --git a/net/dns/dns_socket_pool.h b/net/dns/dns_socket_pool.h
index 54a2edb6f8df1864475e5d3ff05b7acd56e36a71..6bfe474d6a91c9251e6228838e0c46e76bc4dca8 100644
--- a/net/dns/dns_socket_pool.h
+++ b/net/dns/dns_socket_pool.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
+#include "net/base/net_log.h"
namespace net {
@@ -16,6 +17,7 @@ class ClientSocketFactory;
class DatagramClientSocket;
class IPEndPoint;
class NetLog;
+class StreamSocket;
// A DnsSocketPool is an abstraction layer around a ClientSocketFactory that
// allows preallocation, reuse, or other strategies to manage sockets connected
@@ -59,6 +61,12 @@ class NET_EXPORT_PRIVATE DnsSocketPool {
unsigned server_index,
scoped_ptr<DatagramClientSocket> socket) = 0;
+ // Creates a StreamSocket from the factory for a transaction over TCP. These
+ // sockets are not pooled.
+ scoped_ptr<StreamSocket> CreateTCPSocket(
+ unsigned server_index,
+ const NetLog::Source& source);
+
protected:
DnsSocketPool(ClientSocketFactory* socket_factory);
« no previous file with comments | « net/dns/dns_session.cc ('k') | net/dns/dns_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698