| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ---------------------------- | 5 // ---------------------------- |
| 6 // Overview of error design | 6 // Overview of error design |
| 7 // ---------------------------- | 7 // ---------------------------- |
| 8 // | 8 // |
| 9 // Certificate path validation/parsing may emit a sequence of | 9 // Certificate path validation/parsing may emit a sequence of |
| 10 // errors/warnings/context. These are represented by a tree of CertErrorNodes. | 10 // errors/warnings/context. These are represented by a tree of CertErrorNodes. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 #include "base/compiler_specific.h" | 69 #include "base/compiler_specific.h" |
| 70 #include "base/macros.h" | 70 #include "base/macros.h" |
| 71 #include "net/base/net_export.h" | 71 #include "net/base/net_export.h" |
| 72 #include "net/cert/internal/cert_error_id.h" | 72 #include "net/cert/internal/cert_error_id.h" |
| 73 | 73 |
| 74 namespace net { | 74 namespace net { |
| 75 | 75 |
| 76 class CertErrorParams; | 76 class CertErrorParams; |
| 77 class CertErrorScoper; | 77 class CertErrorScoper; |
| 78 class ParsedCertificate; | |
| 79 | 78 |
| 80 // The type of a particular CertErrorNode. | 79 // The type of a particular CertErrorNode. |
| 81 enum class CertErrorNodeType { | 80 enum class CertErrorNodeType { |
| 82 // Note the TYPE_ prefix is to avoid compile errors. Because ERROR() is a | 81 // Note the TYPE_ prefix is to avoid compile errors. Because ERROR() is a |
| 83 // commonly used macro name. | 82 // commonly used macro name. |
| 84 | 83 |
| 85 // Node that represents a single error. | 84 // Node that represents a single error. |
| 86 TYPE_ERROR, | 85 TYPE_ERROR, |
| 87 | 86 |
| 88 // Node that represents a single non-fatal error. | 87 // Node that represents a single non-fatal error. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // The top-most CertErrorScoper that is currently in scope (and which affects | 154 // The top-most CertErrorScoper that is currently in scope (and which affects |
| 156 // the parent node for newly added errors). | 155 // the parent node for newly added errors). |
| 157 CertErrorScoper* current_scoper_ = nullptr; | 156 CertErrorScoper* current_scoper_ = nullptr; |
| 158 | 157 |
| 159 DISALLOW_COPY_AND_ASSIGN(CertErrors); | 158 DISALLOW_COPY_AND_ASSIGN(CertErrors); |
| 160 }; | 159 }; |
| 161 | 160 |
| 162 } // namespace net | 161 } // namespace net |
| 163 | 162 |
| 164 #endif // NET_CERT_INTERNAL_CERT_ERRORS_H_ | 163 #endif // NET_CERT_INTERNAL_CERT_ERRORS_H_ |
| OLD | NEW |