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 namespace net { | |
9 class X509Certificate; | |
10 } | |
11 | |
12 namespace content { | |
13 | |
14 // A delegate interface for selecting a client certificate for use with a | |
15 // network request. | |
16 class ClientCertificateDelegate { | |
17 public: | |
18 virtual ~ClientCertificateDelegate() {} | |
19 | |
20 // Continue the request with |cert|. |cert| may be nullptr to continue without | |
21 // supplying a certificate. This decision will be remembered for future | |
22 // requests to the domain. | |
23 // | |
24 // TODO(davidben): Some calls to ContinueWithCertificate(nullptr) should be | |
25 // CancelCertificateSelection. Switch them all as appropriate. | |
26 virtual void ContinueWithCertificate(net::X509Certificate* cert) = 0; | |
27 | |
28 // Called to abort the request. | |
29 virtual void CancelCertificateSelection() = 0; | |
30 }; | |
pneubeck (no reviews)
2015/02/14 10:53:02
nit:
private:
DISALLOW_ASSIGN(...);
to through
davidben
2015/02/18 22:31:45
Done.
| |
31 | |
32 } // namespace content | |
33 | |
34 #endif // CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_ | |
OLD | NEW |