diff options
Diffstat (limited to 'net/socket/client_socket_factory.h')
-rw-r--r-- | net/socket/client_socket_factory.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/socket/client_socket_factory.h b/net/socket/client_socket_factory.h index dddf1de..97fb361 100644 --- a/net/socket/client_socket_factory.h +++ b/net/socket/client_socket_factory.h @@ -4,15 +4,17 @@ #ifndef NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ +#pragma once #include <string> +#include "net/base/net_log.h" + namespace net { class AddressList; class ClientSocket; class ClientSocketHandle; -class NetLog; class SSLClientSocket; struct SSLConfig; @@ -28,8 +30,12 @@ class ClientSocketFactory { public: virtual ~ClientSocketFactory() {} + // |source| is the NetLog::Source for the entity trying to create the socket, + // if it has one. virtual ClientSocket* CreateTCPClientSocket( - const AddressList& addresses, NetLog* net_log) = 0; + const AddressList& addresses, + NetLog* net_log, + const NetLog::Source& source) = 0; virtual SSLClientSocket* CreateSSLClientSocket( ClientSocketHandle* transport_socket, |