OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 | |
10 namespace net { | |
11 class X509Certificate; | |
12 } | |
13 | |
14 namespace content { | |
15 | |
16 // A delegate interface for selecting a client certificate for use with a | |
17 // network request. | |
18 class ClientCertificateDelegate { | |
19 public: | |
20 ClientCertificateDelegate() {} | |
21 | |
22 // If the delegate is destroyed without calling ContinueWithCertificate, the | |
23 // certificate request is aborted. | |
mmenke
2015/03/09 18:30:27
optional: Maybe this should be part of the class
mmenke
2015/03/09 18:30:27
optional: Maybe "is" -> "will be"?
davidben
2015/03/10 02:07:57
Done.
davidben
2015/03/10 02:07:57
Done.
| |
24 virtual ~ClientCertificateDelegate() {} | |
25 | |
26 // Continue the request with |cert|. |cert| may be nullptr to continue without | |
27 // supplying a certificate. This decision will be remembered for future | |
28 // requests to the domain. | |
29 virtual void ContinueWithCertificate(net::X509Certificate* cert) = 0; | |
30 | |
31 private: | |
32 DISALLOW_COPY_AND_ASSIGN(ClientCertificateDelegate); | |
33 }; | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_ | |
OLD | NEW |