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

Side by Side Diff: chrome/browser/chromeos/certificate_provider/certificate_info.h

Issue 2822283002: Remove SSLPrivateKey metadata hooks. (Closed)
Patch Set: tidy up includes Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/certificate_provider/certificate_provider_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ 6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
emaxx 2017/04/19 19:39:34 nit: This is not used anymore.
davidben 2017/04/19 20:40:49 Done.
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/cert/x509_certificate.h" 12 #include "net/cert/x509_certificate.h"
13 #include "net/ssl/ssl_private_key.h" 13 #include "net/ssl/ssl_private_key.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 namespace certificate_provider { 16 namespace certificate_provider {
17 17
18 // Holds all information of a certificate that must be synchronously available 18 // Holds all information of a certificate that must be synchronously available
19 // to implement net::SSLPrivateKey. 19 // to implement net::SSLPrivateKey.
20 struct CertificateInfo { 20 struct CertificateInfo {
21 CertificateInfo(); 21 CertificateInfo();
22 CertificateInfo(const CertificateInfo& other); 22 CertificateInfo(const CertificateInfo& other);
23 ~CertificateInfo(); 23 ~CertificateInfo();
24 24
25 net::SSLPrivateKey::Type type = net::SSLPrivateKey::Type::RSA;
26 size_t max_signature_length_in_bytes = 0;
27 scoped_refptr<net::X509Certificate> certificate; 25 scoped_refptr<net::X509Certificate> certificate;
28 std::vector<net::SSLPrivateKey::Hash> supported_hashes; 26 std::vector<net::SSLPrivateKey::Hash> supported_hashes;
29 }; 27 };
30 using CertificateInfoList = std::vector<CertificateInfo>; 28 using CertificateInfoList = std::vector<CertificateInfo>;
31 29
32 } // namespace certificate_provider 30 } // namespace certificate_provider
33 } // namespace chromeos 31 } // namespace chromeos
34 32
35 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ 33 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/certificate_provider/certificate_provider_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698