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

Side by Side Diff: chrome/browser/chromeos/net/client_cert_store_cros.h

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cert manager basics working Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_
7
8 #include <vector>
9
10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/chromeos/net/profile_cert_filter.h"
13 #include "crypto/scoped_nss_types.h"
14 #include "net/cert/x509_certificate.h"
15 #include "net/ssl/client_cert_store.h"
16 #include "net/ssl/client_cert_store_impl.h"
17
18 namespace chromeos {
19
20 class ClientCertStoreCros : public net::ClientCertStore {
21 public:
22 explicit ClientCertStoreCros(content::ResourceContext* context);
23 virtual ~ClientCertStoreCros() {}
24
25 // net::ClientCertStore:
26 virtual void GetClientCerts(const net::SSLCertRequestInfo& cert_request_info,
27 net::CertificateList* selected_certs,
28 const base::Closure& callback) OVERRIDE;
29
30 private:
31 void ReadyToGetCerts();
32 void GotClientCerts();
33
34 const net::SSLCertRequestInfo* cert_request_info_;
35
36 net::CertificateList* selected_certs_;
37
38 net::ClientCertStoreImpl net_client_cert_store_impl_;
39
40 ProfileCertFilter profile_cert_filter_;
41
42 base::Closure ready_to_get_certs_barrier_;
43
44 base::Closure callback_;
45
46 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreCros);
47 };
48
49 } // namespace chromeos
50
51 #endif // CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chromeos/net/client_cert_store_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698