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

Side by Side Diff: net/cert/internal/cert_errors.h

Issue 2326923002: Introduce CertErrors::ToDebugString(). (Closed)
Patch Set: checkpoint Created 4 years, 3 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
« no previous file with comments | « no previous file | net/cert/internal/cert_errors.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/cert/internal/cert_errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698