| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ssl/ssl_error_info.h" | 5 #include "chrome/browser/ssl/ssl_error_info.h" |
| 6 | 6 |
| 7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/grit/chromium_strings.h" |
| 11 #include "chrome/grit/generated_resources.h" |
| 10 #include "content/public/browser/cert_store.h" | 12 #include "content/public/browser/cert_store.h" |
| 11 #include "grit/chromium_strings.h" | |
| 12 #include "grit/generated_resources.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 SSLErrorInfo::SSLErrorInfo(const base::string16& details, | 22 SSLErrorInfo::SSLErrorInfo(const base::string16& details, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 cert_id, &cert); | 235 cert_id, &cert); |
| 236 DCHECK(r); | 236 DCHECK(r); |
| 237 } | 237 } |
| 238 if (errors) | 238 if (errors) |
| 239 errors->push_back( | 239 errors->push_back( |
| 240 SSLErrorInfo::CreateError(kErrorTypes[i], cert.get(), url)); | 240 SSLErrorInfo::CreateError(kErrorTypes[i], cert.get(), url)); |
| 241 } | 241 } |
| 242 } | 242 } |
| 243 return count; | 243 return count; |
| 244 } | 244 } |
| OLD | NEW |