summaryrefslogtreecommitdiffstats
path: root/net/socket/ssl_client_socket_win.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 20:04:18 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 20:04:18 +0000
commit0f7804ec8e1e2d5c7f8498dfee2ab851347b2935 (patch)
tree64569b624e1ca55a4c6721528fb9eaa0a216a927 /net/socket/ssl_client_socket_win.cc
parentb45937e4e0afacf8c76661fc4bee799d28aae2ce (diff)
downloadchromium_src-0f7804ec8e1e2d5c7f8498dfee2ab851347b2935.zip
chromium_src-0f7804ec8e1e2d5c7f8498dfee2ab851347b2935.tar.gz
chromium_src-0f7804ec8e1e2d5c7f8498dfee2ab851347b2935.tar.bz2
Convert the easy ones in net/base/ to using CompletionCallback.
BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8139007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket_win.cc')
-rw-r--r--net/socket/ssl_client_socket_win.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/socket/ssl_client_socket_win.cc b/net/socket/ssl_client_socket_win.cc
index 50b24db..10ba66a 100644
--- a/net/socket/ssl_client_socket_win.cc
+++ b/net/socket/ssl_client_socket_win.cc
@@ -7,6 +7,7 @@
#include <schnlsp.h>
#include <map>
+#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
#include "base/stl_util.h"
@@ -1172,9 +1173,11 @@ int SSLClientSocketWin::DoVerifyCert() {
if (ssl_config_.verify_ev_cert)
flags |= X509Certificate::VERIFY_EV_CERT;
verifier_.reset(new SingleRequestCertVerifier(cert_verifier_));
- return verifier_->Verify(server_cert_, host_and_port_.host(), flags,
- &server_cert_verify_result_,
- &handshake_io_callback_);
+ return verifier_->Verify(
+ server_cert_, host_and_port_.host(), flags,
+ &server_cert_verify_result_,
+ base::Bind(&SSLClientSocketWin::OnHandshakeIOComplete,
+ base::Unretained(this)));
}
int SSLClientSocketWin::DoVerifyCertComplete(int result) {