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

Unified Diff: content/public/browser/client_certificate_delegate.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: . Created 3 years, 7 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: content/public/browser/client_certificate_delegate.h
diff --git a/content/public/browser/client_certificate_delegate.h b/content/public/browser/client_certificate_delegate.h
index d957fd995b3fc26665a5d49cbcae0011642d10c7..9b65fd84d16200e084e279382e78f195efbb8985 100644
--- a/content/public/browser/client_certificate_delegate.h
+++ b/content/public/browser/client_certificate_delegate.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
namespace net {
+class SSLPrivateKey;
class X509Certificate;
}
@@ -21,10 +22,12 @@ class ClientCertificateDelegate {
ClientCertificateDelegate() {}
virtual ~ClientCertificateDelegate() {}
- // Continue the request with |cert|. |cert| may be nullptr to continue without
- // supplying a certificate. This decision will be remembered for future
- // requests to the domain.
- virtual void ContinueWithCertificate(net::X509Certificate* cert) = 0;
+ // Continue the request with |cert| and matching |key|. |cert| or |key| may
davidben 2017/06/01 23:41:25 or => and?
mattm 2017/06/02 04:04:20 It's possible for |cert| to be non-null and |key|
davidben 2017/06/07 23:06:16 Well, cert non-null and key null doesn't mean to c
mattm 2017/06/08 21:47:55 Done, thanks.
+ // be nullptr to continue without supplying a certificate. This decision will
+ // be remembered for future requests to the domain.
+ virtual void ContinueWithCertificate(
+ scoped_refptr<net::X509Certificate> cert,
+ scoped_refptr<net::SSLPrivateKey> key) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(ClientCertificateDelegate);

Powered by Google App Engine
This is Rietveld 408576698