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/ssl_client_socket_win.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'net/socket/ssl_client_socket_win.cc') diff --git a/net/socket/ssl_client_socket_win.cc b/net/socket/ssl_client_socket_win.cc index bcd2aac..6a4ed8f 100644 --- a/net/socket/ssl_client_socket_win.cc +++ b/net/socket/ssl_client_socket_win.cc @@ -14,7 +14,7 @@ #include "net/base/cert_verifier.h" #include "net/base/connection_type_histograms.h" #include "net/base/io_buffer.h" -#include "net/base/load_log.h" +#include "net/base/net_log.h" #include "net/base/net_errors.h" #include "net/base/ssl_cert_request_info.h" #include "net/base/ssl_info.h" @@ -431,16 +431,16 @@ SSLClientSocketWin::GetNextProto(std::string* proto) { } int SSLClientSocketWin::Connect(CompletionCallback* callback, - LoadLog* load_log) { + const BoundNetLog& net_log) { DCHECK(transport_.get()); DCHECK(next_state_ == STATE_NONE); DCHECK(!user_connect_callback_); - LoadLog::BeginEvent(load_log, LoadLog::TYPE_SSL_CONNECT); + net_log.BeginEvent(NetLog::TYPE_SSL_CONNECT); int rv = InitializeSSLContext(); if (rv != OK) { - LoadLog::EndEvent(load_log, LoadLog::TYPE_SSL_CONNECT); + net_log.EndEvent(NetLog::TYPE_SSL_CONNECT); return rv; } @@ -449,9 +449,9 @@ int SSLClientSocketWin::Connect(CompletionCallback* callback, rv = DoLoop(OK); if (rv == ERR_IO_PENDING) { user_connect_callback_ = callback; - load_log_ = load_log; + net_log_ = net_log; } else { - LoadLog::EndEvent(load_log, LoadLog::TYPE_SSL_CONNECT); + net_log.EndEvent(NetLog::TYPE_SSL_CONNECT); } return rv; } @@ -655,8 +655,8 @@ void SSLClientSocketWin::OnHandshakeIOComplete(int result) { c->Run(rv); return; } - LoadLog::EndEvent(load_log_, LoadLog::TYPE_SSL_CONNECT); - load_log_ = NULL; + net_log_.EndEvent(NetLog::TYPE_SSL_CONNECT); + net_log_ = BoundNetLog(); CompletionCallback* c = user_connect_callback_; user_connect_callback_ = NULL; c->Run(rv); -- cgit v1.1