| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |