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

Side by Side Diff: chrome/browser/chromeos/options/cert_library.h

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_OPTIONS_CERT_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Returns true when the certificate list has been initiailized. 60 // Returns true when the certificate list has been initiailized.
61 bool CertificatesLoaded() const; 61 bool CertificatesLoaded() const;
62 62
63 // Returns true if the TPM is available for hardware-backed certificates. 63 // Returns true if the TPM is available for hardware-backed certificates.
64 bool IsHardwareBacked() const; 64 bool IsHardwareBacked() const;
65 65
66 // Retruns the number of certificates available for |type|. 66 // Retruns the number of certificates available for |type|.
67 int NumCertificates(CertType type) const; 67 int NumCertificates(CertType type) const;
68 68
69 // Retreives the certificate property for |type| at |index|. 69 // Retreives the certificate property for |type| at |index|.
70 string16 GetCertDisplayStringAt(CertType type, int index) const; 70 base::string16 GetCertDisplayStringAt(CertType type, int index) const;
71 std::string GetCertPEMAt(CertType type, int index) const; 71 std::string GetCertPEMAt(CertType type, int index) const;
72 std::string GetCertPkcs11IdAt(CertType type, int index) const; 72 std::string GetCertPkcs11IdAt(CertType type, int index) const;
73 bool IsCertHardwareBackedAt(CertType type, int index) const; 73 bool IsCertHardwareBackedAt(CertType type, int index) const;
74 74
75 // Returns the index of a Certificate matching |pem_encoded| or -1 if none 75 // Returns the index of a Certificate matching |pem_encoded| or -1 if none
76 // found. This function may be slow depending on the number of stored 76 // found. This function may be slow depending on the number of stored
77 // certificates. 77 // certificates.
78 // TOOD(pneubeck): Either make this more efficient, asynchronous or get rid of 78 // TOOD(pneubeck): Either make this more efficient, asynchronous or get rid of
79 // it. 79 // it.
80 int GetCertIndexByPEM(CertType type, const std::string& pem_encoded) const; 80 int GetCertIndexByPEM(CertType type, const std::string& pem_encoded) const;
(...skipping 19 matching lines...) Expand all
100 net::CertificateList user_certs_; 100 net::CertificateList user_certs_;
101 net::CertificateList server_certs_; 101 net::CertificateList server_certs_;
102 net::CertificateList server_ca_certs_; 102 net::CertificateList server_ca_certs_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(CertLibrary); 104 DISALLOW_COPY_AND_ASSIGN(CertLibrary);
105 }; 105 };
106 106
107 } // namespace chromeos 107 } // namespace chromeos
108 108
109 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ 109 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/memory/oom_priority_manager.cc ('k') | chrome/browser/chromeos/options/cert_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698