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/page_info_model.h" | 5 #include "chrome/browser/page_info_model.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/i18n/time_formatting.h" | 12 #include "base/i18n/time_formatting.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/page_info_model_observer.h" | 16 #include "chrome/browser/page_info_model_observer.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/ssl/ssl_error_info.h" | 18 #include "chrome/browser/ssl/ssl_error_info.h" |
19 #include "content/public/browser/cert_store.h" | 19 #include "content/public/browser/cert_store.h" |
20 #include "content/public/common/ssl_status.h" | 20 #include "content/public/common/ssl_status.h" |
21 #include "content/public/common/url_constants.h" | 21 #include "content/public/common/url_constants.h" |
22 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
| 25 #include "grit/theme_resources_standard.h" |
25 #include "net/base/cert_status_flags.h" | 26 #include "net/base/cert_status_flags.h" |
26 #include "net/base/ssl_cipher_suite_names.h" | 27 #include "net/base/ssl_cipher_suite_names.h" |
27 #include "net/base/ssl_connection_status_flags.h" | 28 #include "net/base/ssl_connection_status_flags.h" |
28 #include "net/base/x509_certificate.h" | 29 #include "net/base/x509_certificate.h" |
29 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
30 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
31 | 32 |
32 using content::SSLStatus; | 33 using content::SSLStatus; |
33 | 34 |
34 PageInfoModel::PageInfoModel(Profile* profile, | 35 PageInfoModel::PageInfoModel(Profile* profile, |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // Loads the icons into the vector. The order must match the SectionStateIcon | 362 // Loads the icons into the vector. The order must match the SectionStateIcon |
362 // enum. | 363 // enum. |
363 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 364 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
364 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_GOOD)); | 365 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_GOOD)); |
365 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_WARNING_MINOR)); | 366 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_WARNING_MINOR)); |
366 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_WARNING_MAJOR)); | 367 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_WARNING_MAJOR)); |
367 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_BAD)); | 368 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_BAD)); |
368 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_INFO)); | 369 icons_.push_back(&rb.GetNativeImageNamed(IDR_PAGEINFO_INFO)); |
369 icons_.push_back(&rb.GetNativeImageNamed(IDR_PRODUCT_LOGO_26)); | 370 icons_.push_back(&rb.GetNativeImageNamed(IDR_PRODUCT_LOGO_26)); |
370 } | 371 } |
OLD | NEW |