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> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/i18n/message_formatter.h" | 9 #include "base/i18n/message_formatter.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/cert/cert_status_flags.h" | 15 #include "net/cert/cert_status_flags.h" |
16 #include "net/ssl/ssl_info.h" | 16 #include "net/ssl/ssl_info.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 using base::UTF8ToUTF16; | 20 using base::UTF8ToUTF16; |
21 | 21 |
22 namespace ssl_errors { | 22 namespace ssl_errors { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 for (size_t i = 0; i < arraysize(kErrorFlags); ++i) { | 253 for (size_t i = 0; i < arraysize(kErrorFlags); ++i) { |
254 if ((cert_status & kErrorFlags[i]) && errors) { | 254 if ((cert_status & kErrorFlags[i]) && errors) { |
255 errors->push_back( | 255 errors->push_back( |
256 ErrorInfo::CreateError(kErrorTypes[i], cert.get(), url)); | 256 ErrorInfo::CreateError(kErrorTypes[i], cert.get(), url)); |
257 } | 257 } |
258 } | 258 } |
259 } | 259 } |
260 | 260 |
261 } // namespace ssl_errors | 261 } // namespace ssl_errors |
OLD | NEW |