closure: fix compile error by adding missing externs
[chromium-blink-merge.git] / net / cert / cert_type.h
blob84fc44ab1d514ffe36f9f102646f9166577ae247
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
3 // found in the LICENSE file.
5 #ifndef NET_CERT_CERT_TYPE_H_
6 #define NET_CERT_CERT_TYPE_H_
8 namespace net {
10 // Constants to classify the type of a certificate.
11 // This is only used in the context of CertDatabase, but is defined outside to
12 // avoid an awkwardly long type name.
13 // The type is a combination of intrinsic properties, such as the presense of an
14 // Certificate Authority Basic Constraint, and assigned trust values. For
15 // example, a cert with no basic constraints or trust would be classified as
16 // UNKNOWN_CERT. If that cert is then trusted with SetCertTrust(cert,
17 // SERVER_CERT, TRUSTED_SSL), it would become a SERVER_CERT.
18 enum CertType {
19 OTHER_CERT,
20 CA_CERT,
21 USER_CERT,
22 SERVER_CERT,
23 NUM_CERT_TYPES
26 } // namespace net
28 #endif // NET_CERT_CERT_TYPE_H_