1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_
8 #include "base/macros.h"
11 class X509Certificate
;
16 // A delegate interface for selecting a client certificate for use with a
17 // network request. If the delegate is destroyed without calling
18 // ContinueWithCertificate, the certificate request will be aborted.
19 class ClientCertificateDelegate
{
21 ClientCertificateDelegate() {}
22 virtual ~ClientCertificateDelegate() {}
24 // Continue the request with |cert|. |cert| may be nullptr to continue without
25 // supplying a certificate. This decision will be remembered for future
26 // requests to the domain.
27 virtual void ContinueWithCertificate(net::X509Certificate
* cert
) = 0;
30 DISALLOW_COPY_AND_ASSIGN(ClientCertificateDelegate
);
33 } // namespace content
35 #endif // CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_