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

Side by Side Diff: net/cert/nss_cert_database.h

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CERT_NSS_CERT_DATABASE_H_ 5 #ifndef NET_CERT_NSS_CERT_DATABASE_H_
6 #define NET_CERT_NSS_CERT_DATABASE_H_ 6 #define NET_CERT_NSS_CERT_DATABASE_H_
7 7
8 #include <stdint.h>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
16 #include "crypto/scoped_nss_types.h" 17 #include "crypto/scoped_nss_types.h"
17 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
18 #include "net/base/net_export.h" 19 #include "net/base/net_export.h"
19 #include "net/cert/cert_type.h" 20 #include "net/cert/cert_type.h"
20 #include "net/cert/x509_certificate.h" 21 #include "net/cert/x509_certificate.h"
21 22
22 namespace base { 23 namespace base {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // For SERVER_CERT, only TRUSTED_SSL makes sense, and specifies the cert is 79 // For SERVER_CERT, only TRUSTED_SSL makes sense, and specifies the cert is
79 // trusted as a server. 80 // trusted as a server.
80 // For EMAIL_CERT, only TRUSTED_EMAIL makes sense, and specifies the cert is 81 // For EMAIL_CERT, only TRUSTED_EMAIL makes sense, and specifies the cert is
81 // trusted for email. 82 // trusted for email.
82 // DISTRUSTED_* specifies that the cert should not be trusted for the given 83 // DISTRUSTED_* specifies that the cert should not be trusted for the given
83 // usage, regardless of whether it would otherwise inherit trust from the 84 // usage, regardless of whether it would otherwise inherit trust from the
84 // issuer chain. 85 // issuer chain.
85 // Use TRUST_DEFAULT to inherit trust as normal. 86 // Use TRUST_DEFAULT to inherit trust as normal.
86 // NOTE: The actual constants are defined using an enum instead of static 87 // NOTE: The actual constants are defined using an enum instead of static
87 // consts due to compilation/linkage constraints with template functions. 88 // consts due to compilation/linkage constraints with template functions.
88 typedef uint32 TrustBits; 89 typedef uint32_t TrustBits;
89 enum { 90 enum {
90 TRUST_DEFAULT = 0, 91 TRUST_DEFAULT = 0,
91 TRUSTED_SSL = 1 << 0, 92 TRUSTED_SSL = 1 << 0,
92 TRUSTED_EMAIL = 1 << 1, 93 TRUSTED_EMAIL = 1 << 1,
93 TRUSTED_OBJ_SIGN = 1 << 2, 94 TRUSTED_OBJ_SIGN = 1 << 2,
94 DISTRUSTED_SSL = 1 << 3, 95 DISTRUSTED_SSL = 1 << 3,
95 DISTRUSTED_EMAIL = 1 << 4, 96 DISTRUSTED_EMAIL = 1 << 4,
96 DISTRUSTED_OBJ_SIGN = 1 << 5, 97 DISTRUSTED_OBJ_SIGN = 1 << 5,
97 }; 98 };
98 99
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 const scoped_refptr<base::ObserverListThreadSafe<Observer>> observer_list_; 306 const scoped_refptr<base::ObserverListThreadSafe<Observer>> observer_list_;
306 307
307 base::WeakPtrFactory<NSSCertDatabase> weak_factory_; 308 base::WeakPtrFactory<NSSCertDatabase> weak_factory_;
308 309
309 DISALLOW_COPY_AND_ASSIGN(NSSCertDatabase); 310 DISALLOW_COPY_AND_ASSIGN(NSSCertDatabase);
310 }; 311 };
311 312
312 } // namespace net 313 } // namespace net
313 314
314 #endif // NET_CERT_NSS_CERT_DATABASE_H_ 315 #endif // NET_CERT_NSS_CERT_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698