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

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: 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_response.cc ('k') | net/dns/dns_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_session.h
diff --git a/net/dns/dns_session.h b/net/dns/dns_session.h
index 5cc1b1b8de190223e04fec43d494c49d706c829d..dc37d34e640b9f9e158d710b18fbe7d271c41789 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,11 @@ class NET_EXPORT_PRIVATE DnsSession
scoped_ptr<SocketLease> AllocateSocket(unsigned server_index,
const NetLog::Source& source);
+ // 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);
+
private:
friend class base::RefCounted<DnsSession>;
~DnsSession();
« no previous file with comments | « net/dns/dns_response.cc ('k') | net/dns/dns_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698