summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_factory.h
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-25 17:08:07 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-25 17:08:07 +0000
commit0a0b768baf188195cea0e58bf61313cb948f1ddd (patch)
tree96188cae26746d1673e11c29dc493c1538332210 /net/socket/client_socket_factory.h
parent18c0b57df5cf6a7cf06edc35261af82b9f6c6e8e (diff)
downloadchromium_src-0a0b768baf188195cea0e58bf61313cb948f1ddd.zip
chromium_src-0a0b768baf188195cea0e58bf61313cb948f1ddd.tar.gz
chromium_src-0a0b768baf188195cea0e58bf61313cb948f1ddd.tar.bz2
In about:net-internals, each SOCKET created by a CONNECT_JOB holds a reference to the CONNECT_JOB that spawned it.
BUG=47082 TEST=manual Review URL: http://codereview.chromium.org/3164005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_factory.h')
-rw-r--r--net/socket/client_socket_factory.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/socket/client_socket_factory.h b/net/socket/client_socket_factory.h
index d0f1581..97fb361 100644
--- a/net/socket/client_socket_factory.h
+++ b/net/socket/client_socket_factory.h
@@ -8,12 +8,13 @@
#include <string>
+#include "net/base/net_log.h"
+
namespace net {
class AddressList;
class ClientSocket;
class ClientSocketHandle;
-class NetLog;
class SSLClientSocket;
struct SSLConfig;
@@ -29,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,