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

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: 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_socket_pool.h
diff --git a/net/dns/dns_socket_pool.h b/net/dns/dns_socket_pool.h
index 54a2edb6f8df1864475e5d3ff05b7acd56e36a71..b57cbe45bc200d25a06ec1774b3a314bf1077c4d 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,11 @@ class NET_EXPORT_PRIVATE DnsSocketPool {
unsigned server_index,
scoped_ptr<DatagramClientSocket> socket) = 0;
+ // TODO(szym): add comment
mmenke 2012/12/19 16:44:09 Assume you're going to take care of that in this C
szym 2012/12/19 23:35:56 Done.
+ scoped_ptr<StreamSocket> AllocateTCPSocket(
+ unsigned server_index,
+ const NetLog::Source& source);
+
protected:
DnsSocketPool(ClientSocketFactory* socket_factory);

Powered by Google App Engine
This is Rietveld 408576698