Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: net/socket/ssl_host_info.h

Issue 8784003: base::Bind: Convert SSLHostInfo::WaitForDataReady. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_host_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_host_info.h
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h
index 4011cc34daaa9eda280ef3e5ec0fdafa049b2175..54eeb2fc90c5f00358a10dc6404f448060958c63 100644
--- a/net/socket/ssl_host_info.h
+++ b/net/socket/ssl_host_info.h
@@ -51,7 +51,7 @@ class NET_EXPORT_PRIVATE SSLHostInfo {
//
// |callback| may be NULL, in which case ERR_IO_PENDING may still be returned
// but, obviously, a callback will never be made.
- virtual int WaitForDataReady(OldCompletionCallback* callback) = 0;
+ virtual int WaitForDataReady(const CompletionCallback& callback) = 0;
// Persist allows for the host information to be updated for future users.
// This is a fire and forget operation: the caller may drop its reference
@@ -91,7 +91,7 @@ class NET_EXPORT_PRIVATE SSLHostInfo {
// callback to be called when the verification completes. If the verification
// has already finished then WaitForCertVerification returns the result of
// that verification.
- int WaitForCertVerification(OldCompletionCallback* callback);
+ int WaitForCertVerification(const CompletionCallback& callback);
base::TimeTicks verification_start_time() const {
return verification_start_time_;
@@ -121,7 +121,7 @@ class NET_EXPORT_PRIVATE SSLHostInfo {
// This is the hostname that we'll validate the certificates against.
const std::string hostname_;
bool cert_parsing_failed_;
- OldCompletionCallback* cert_verification_callback_;
+ CompletionCallback cert_verification_callback_;
// These three members are taken from the SSLConfig.
bool rev_checking_enabled_;
bool verify_ev_cert_;
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_host_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698