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

Unified Diff: net/dns/dns_session.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_session.h
diff --git a/net/dns/dns_session.h b/net/dns/dns_session.h
index 5cc1b1b8de190223e04fec43d494c49d706c829d..07880f247efb0e1402a26a77cb13253b684b8f64 100644
--- a/net/dns/dns_session.h
+++ b/net/dns/dns_session.h
@@ -14,12 +14,13 @@
#include "net/base/rand_callback.h"
#include "net/dns/dns_config_service.h"
#include "net/dns/dns_socket_pool.h"
-#include "net/udp/datagram_client_socket.h"
namespace net {
class ClientSocketFactory;
+class DatagramClientSocket;
class NetLog;
+class StreamSocket;
// Session parameters and state shared between DNS transactions.
// Ref-counted so that DnsClient::Request can keep working in absence of
@@ -36,6 +37,8 @@ class NET_EXPORT_PRIVATE DnsSession
scoped_ptr<DatagramClientSocket> socket);
~SocketLease();
+ unsigned server_index() const { return server_index_; }
+
DatagramClientSocket* socket() { return socket_.get(); }
private:
@@ -68,6 +71,9 @@ class NET_EXPORT_PRIVATE DnsSession
scoped_ptr<SocketLease> AllocateSocket(unsigned server_index,
const NetLog::Source& source);
+ scoped_ptr<StreamSocket> AllocateTCPSocket(unsigned server_index,
+ const NetLog::Source& source);
+
private:
friend class base::RefCounted<DnsSession>;
~DnsSession();

Powered by Google App Engine
This is Rietveld 408576698