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

Side by Side Diff: content/public/browser/client_certificate_delegate.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 unified diff | Download patch
OLDNEW
(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 };
31
32 } // namespace content
33
34 #endif // CONTENT_PUBLIC_BROWSER_CLIENT_CERTIFICATE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698