| 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 may emit a sequence of errors/warnings. These | 9 // Certificate path validation may emit a sequence of errors/warnings. These |
| 10 // are represented by |CertErrors|. | 10 // are represented by |CertErrors|. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void AddWithParam(CertErrorType type, | 108 void AddWithParam(CertErrorType type, |
| 109 std::unique_ptr<CertErrorParams> params); | 109 std::unique_ptr<CertErrorParams> params); |
| 110 | 110 |
| 111 void AddWith1DerParam(CertErrorType type, const der::Input& der1); | 111 void AddWith1DerParam(CertErrorType type, const der::Input& der1); |
| 112 void AddWith2DerParams(CertErrorType type, | 112 void AddWith2DerParams(CertErrorType type, |
| 113 const der::Input& der1, | 113 const der::Input& der1, |
| 114 const der::Input& der2); | 114 const der::Input& der2); |
| 115 | 115 |
| 116 const std::vector<CertError>& errors() const { return errors_; } | 116 const std::vector<CertError>& errors() const { return errors_; } |
| 117 | 117 |
| 118 // Dumps a textual representation of the errors for debugging purposes. |
| 119 std::string ToDebugString() const; |
| 120 |
| 118 private: | 121 private: |
| 119 std::vector<CertError> errors_; | 122 std::vector<CertError> errors_; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(CertErrors); | 124 DISALLOW_COPY_AND_ASSIGN(CertErrors); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 // -------------------------- | 127 // -------------------------- |
| 125 // Context scopers | 128 // Context scopers |
| 126 // -------------------------- | 129 // -------------------------- |
| 127 | 130 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 private: | 176 private: |
| 174 const std::string der1_; | 177 const std::string der1_; |
| 175 const std::string der2_; | 178 const std::string der2_; |
| 176 | 179 |
| 177 DISALLOW_COPY_AND_ASSIGN(CertErrorParamsDer2); | 180 DISALLOW_COPY_AND_ASSIGN(CertErrorParamsDer2); |
| 178 }; | 181 }; |
| 179 | 182 |
| 180 } // namespace net | 183 } // namespace net |
| 181 | 184 |
| 182 #endif // NET_CERT_INTERNAL_CERT_ERRORS_H_ | 185 #endif // NET_CERT_INTERNAL_CERT_ERRORS_H_ |
| OLD | NEW |