OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/ssl_errors/error_info.h" | 5 #include "components/ssl_errors/error_info.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/i18n/message_formatter.h" | 9 #include "base/i18n/message_formatter.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
9 #include "grit/components_strings.h" | 12 #include "grit/components_strings.h" |
10 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
11 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
12 #include "net/cert/cert_status_flags.h" | 15 #include "net/cert/cert_status_flags.h" |
13 #include "net/ssl/ssl_info.h" | 16 #include "net/ssl/ssl_info.h" |
14 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
15 #include "url/gurl.h" | 18 #include "url/gurl.h" |
16 | 19 |
17 using base::UTF8ToUTF16; | 20 using base::UTF8ToUTF16; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 249 |
247 for (size_t i = 0; i < arraysize(kErrorFlags); ++i) { | 250 for (size_t i = 0; i < arraysize(kErrorFlags); ++i) { |
248 if ((cert_status & kErrorFlags[i]) && errors) { | 251 if ((cert_status & kErrorFlags[i]) && errors) { |
249 errors->push_back( | 252 errors->push_back( |
250 ErrorInfo::CreateError(kErrorTypes[i], cert.get(), url)); | 253 ErrorInfo::CreateError(kErrorTypes[i], cert.get(), url)); |
251 } | 254 } |
252 } | 255 } |
253 } | 256 } |
254 | 257 |
255 } // namespace ssl_errors | 258 } // namespace ssl_errors |
OLD | NEW |