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

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

Issue 6580058: NSS: Unlock crypto devices when populating cert manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing newline Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CONTENT_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 5 #ifndef CONTENT_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
6 #define CONTENT_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 6 #define CONTENT_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Returns true on success or false on failure. 91 // Returns true on success or false on failure.
92 bool SetCertTrust(const net::X509Certificate* cert, 92 bool SetCertTrust(const net::X509Certificate* cert,
93 net::CertType type, 93 net::CertType type,
94 unsigned int trust_bits); 94 unsigned int trust_bits);
95 95
96 // Delete the cert. Returns true on success. |cert| is still valid when this 96 // Delete the cert. Returns true on success. |cert| is still valid when this
97 // function returns. 97 // function returns.
98 bool Delete(net::X509Certificate* cert); 98 bool Delete(net::X509Certificate* cert);
99 99
100 private: 100 private:
101 void RefreshUnlocked();
wtc 2011/03/02 03:33:28 Nit: document this function. Why is it unlocked?
mattm 2011/03/05 02:16:32 Done.
102
101 net::CertDatabase cert_db_; 103 net::CertDatabase cert_db_;
102 net::CertificateList cert_list_; 104 net::CertificateList cert_list_;
103 105
104 // The observer to notify when certificate list is refreshed. 106 // The observer to notify when certificate list is refreshed.
105 Observer* observer_; 107 Observer* observer_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); 109 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel);
108 }; 110 };
109 111
110 #endif // CONTENT_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 112 #endif // CONTENT_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698