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

Side by Side Diff: net/base/cert_database.h

Issue 7605019: Reduce number of unnamed-type-template-args violations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 NET_BASE_CERT_DATABASE_H_ 5 #ifndef NET_BASE_CERT_DATABASE_H_
6 #define NET_BASE_CERT_DATABASE_H_ 6 #define NET_BASE_CERT_DATABASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Constants that define which usages a certificate is trusted for. 71 // Constants that define which usages a certificate is trusted for.
72 // They are used in combination with CertType to specify trust for each type 72 // They are used in combination with CertType to specify trust for each type
73 // of certificate. 73 // of certificate.
74 // For a CA_CERT, they specify that the CA is trusted for issuing server and 74 // For a CA_CERT, they specify that the CA is trusted for issuing server and
75 // client certs of each type. 75 // client certs of each type.
76 // For SERVER_CERT, only TRUSTED_SSL makes sense, and specifies the cert is 76 // For SERVER_CERT, only TRUSTED_SSL makes sense, and specifies the cert is
77 // trusted as a server. 77 // trusted as a server.
78 // For EMAIL_CERT, only TRUSTED_EMAIL makes sense, and specifies the cert is 78 // For EMAIL_CERT, only TRUSTED_EMAIL makes sense, and specifies the cert is
79 // trusted for email. 79 // trusted for email.
80 enum { 80 enum TrustBits {
81 UNTRUSTED = 0, 81 UNTRUSTED = 0,
82 TRUSTED_SSL = 1 << 0, 82 TRUSTED_SSL = 1 << 0,
83 TRUSTED_EMAIL = 1 << 1, 83 TRUSTED_EMAIL = 1 << 1,
84 TRUSTED_OBJ_SIGN = 1 << 2, 84 TRUSTED_OBJ_SIGN = 1 << 2,
85 }; 85 };
86 86
87 CertDatabase(); 87 CertDatabase();
88 88
89 // Check whether this is a valid user cert that we have the private key for. 89 // Check whether this is a valid user cert that we have the private key for.
90 // Returns OK or a network error code such as ERR_CERT_CONTAINS_ERRORS. 90 // Returns OK or a network error code such as ERR_CERT_CONTAINS_ERRORS.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Broadcasts notifications to all registered observers. 187 // Broadcasts notifications to all registered observers.
188 static void NotifyObserversOfUserCertAdded(const X509Certificate* cert); 188 static void NotifyObserversOfUserCertAdded(const X509Certificate* cert);
189 static void NotifyObserversOfCertTrustChanged(const X509Certificate* cert); 189 static void NotifyObserversOfCertTrustChanged(const X509Certificate* cert);
190 190
191 DISALLOW_COPY_AND_ASSIGN(CertDatabase); 191 DISALLOW_COPY_AND_ASSIGN(CertDatabase);
192 }; 192 };
193 193
194 } // namespace net 194 } // namespace net
195 195
196 #endif // NET_BASE_CERT_DATABASE_H_ 196 #endif // NET_BASE_CERT_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698