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

Unified Diff: chrome/browser/ssl/ssl_client_certificate_selector.h

Issue 859213006: Cancel client auth requests when not promptable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-auth-cancel-1
Patch Set: extension test Created 5 years, 10 months 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
Index: chrome/browser/ssl/ssl_client_certificate_selector.h
diff --git a/chrome/browser/ssl/ssl_client_certificate_selector.h b/chrome/browser/ssl/ssl_client_certificate_selector.h
index 1a33c0598d21894425978ba7487671fed39508bd..d17b5bc32f37189322628c60c7ab1e8b85973c05 100644
--- a/chrome/browser/ssl/ssl_client_certificate_selector.h
+++ b/chrome/browser/ssl/ssl_client_certificate_selector.h
@@ -6,8 +6,10 @@
#define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
namespace content {
+class ClientCertificateDelegate;
class WebContents;
}
@@ -18,17 +20,14 @@ class X509Certificate;
namespace chrome {
-typedef base::Callback<void(net::X509Certificate*)> SelectCertificateCallback;
-
// Opens a constrained SSL client certificate selection dialog under |parent|,
// offering certificates from |cert_request_info|. When the user has made a
-// selection, the dialog will report back to |callback|. |callback| is notified
-// when the dialog closes in call cases; if the user cancels the dialog, we call
-// with a NULL certificate.
+// selection, the dialog will report back to |delegate|. If the dialog is
+// closed, |delegate| is notified to cancel the selection.
void ShowSSLClientCertificateSelector(
content::WebContents* contents,
net::SSLCertRequestInfo* cert_request_info,
- const SelectCertificateCallback& callback);
+ scoped_ptr<content::ClientCertificateDelegate> delegate);
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698