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

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

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
« no previous file with comments | « net/cert/cert_database_win.cc ('k') | net/cert/cert_status_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_CERT_STATUS_FLAGS_H_ 5 #ifndef NET_CERT_CERT_STATUS_FLAGS_H_
6 #define NET_BASE_CERT_STATUS_FLAGS_H_ 6 #define NET_CERT_CERT_STATUS_FLAGS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 // Bitmask of status flags of a certificate, representing any errors, as well as 13 // Bitmask of status flags of a certificate, representing any errors, as well as
14 // other non-error status information such as whether the certificate is EV. 14 // other non-error status information such as whether the certificate is EV.
15 typedef uint32 CertStatus; 15 typedef uint32 CertStatus;
16 16
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Maps a network error code to the equivalent certificate status flag. If 51 // Maps a network error code to the equivalent certificate status flag. If
52 // the error code is not a certificate error, it is mapped to 0. 52 // the error code is not a certificate error, it is mapped to 0.
53 NET_EXPORT CertStatus MapNetErrorToCertStatus(int error); 53 NET_EXPORT CertStatus MapNetErrorToCertStatus(int error);
54 54
55 // Maps the most serious certificate error in the certificate status flags 55 // Maps the most serious certificate error in the certificate status flags
56 // to the equivalent network error code. 56 // to the equivalent network error code.
57 NET_EXPORT int MapCertStatusToNetError(CertStatus cert_status); 57 NET_EXPORT int MapCertStatusToNetError(CertStatus cert_status);
58 58
59 } // namespace net 59 } // namespace net
60 60
61 #endif // NET_BASE_CERT_STATUS_FLAGS_H_ 61 #endif // NET_CERT_CERT_STATUS_FLAGS_H_
OLDNEW
« no previous file with comments | « net/cert/cert_database_win.cc ('k') | net/cert/cert_status_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698