From 9e743cddfd631038fe6f1cdde050e18d61319ec6 Mon Sep 17 00:00:00 2001 From: "eroman@chromium.org" Date: Tue, 16 Mar 2010 07:03:53 +0000 Subject: Generalize the net module's LoadLog facility from a passive container, to an event stream (NetLog). This makes it possible to associate a single NetLog with a URLRequestContext, and then attach observers to that log to watch the stream of events. This changelist attempts to do the most direct translation, so there will be subsequent iterations to clean up. The user-visible behavior should remain unchanged. BUG=37421 Review URL: http://codereview.chromium.org/848006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41689 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/socket_test_util.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/socket/socket_test_util.cc') diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc index 1634106..ba0c8dc 100644 --- a/net/socket/socket_test_util.cc +++ b/net/socket/socket_test_util.cc @@ -83,7 +83,7 @@ MockTCPClientSocket::MockTCPClientSocket(const net::AddressList& addresses, } int MockTCPClientSocket::Connect(net::CompletionCallback* callback, - LoadLog* load_log) { + const BoundNetLog& net_log) { if (connected_) return net::OK; connected_ = true; @@ -252,10 +252,10 @@ void MockSSLClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { } int MockSSLClientSocket::Connect(net::CompletionCallback* callback, - LoadLog* load_log) { + const BoundNetLog& net_log) { ConnectCallback* connect_callback = new ConnectCallback( this, callback, data_->connect.result); - int rv = transport_->Connect(connect_callback, load_log); + int rv = transport_->Connect(connect_callback, net_log); if (rv == net::OK) { delete connect_callback; if (data_->connect.async) { -- cgit v1.1