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

Side by Side Diff: chrome/browser/certificate_manager_model.h

Issue 10407072: certificate manager: Disable export option for TPM-backed certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the extractability test out of net/ Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CERTIFICATE_MANAGER_MODEL_H_ 5 #ifndef CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
6 #define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 6 #define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // UNTRUSTED. 93 // UNTRUSTED.
94 // Returns true on success or false on failure. 94 // Returns true on success or false on failure.
95 bool SetCertTrust(const net::X509Certificate* cert, 95 bool SetCertTrust(const net::X509Certificate* cert,
96 net::CertType type, 96 net::CertType type,
97 net::CertDatabase::TrustBits trust_bits); 97 net::CertDatabase::TrustBits trust_bits);
98 98
99 // Delete the cert. Returns true on success. |cert| is still valid when this 99 // Delete the cert. Returns true on success. |cert| is still valid when this
100 // function returns. 100 // function returns.
101 bool Delete(net::X509Certificate* cert); 101 bool Delete(net::X509Certificate* cert);
102 102
103 // IsHardwareBacked returns true if |cert| is hardware backed.
wtc 2012/05/22 23:43:46 Please document that this function is only impleme
hshi1 2012/05/23 00:03:29 Done.
104 bool IsHardwareBacked(const net::X509Certificate* cert) const;
105
103 private: 106 private:
104 // Callback used by Refresh() for when the cert slots have been unlocked. 107 // Callback used by Refresh() for when the cert slots have been unlocked.
105 // This method does the actual refreshing. 108 // This method does the actual refreshing.
106 void RefreshSlotsUnlocked(); 109 void RefreshSlotsUnlocked();
107 110
108 net::CertDatabase cert_db_; 111 net::CertDatabase cert_db_;
109 net::CertificateList cert_list_; 112 net::CertificateList cert_list_;
110 113
111 // The observer to notify when certificate list is refreshed. 114 // The observer to notify when certificate list is refreshed.
112 Observer* observer_; 115 Observer* observer_;
113 116
114 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); 117 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel);
115 }; 118 };
116 119
117 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 120 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698