OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/security_interstitials/content/security_interstitial_page.h
" | 5 #include "components/security_interstitials/content/security_interstitial_page.h
" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "components/grit/components_resources.h" | 12 #include "components/grit/components_resources.h" |
13 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
14 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 14 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
15 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" | 15 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" |
16 #include "components/security_interstitials/core/common_string_util.h" | 16 #include "components/security_interstitials/core/common_string_util.h" |
17 #include "content/public/browser/interstitial_page.h" | 17 #include "content/public/browser/interstitial_page.h" |
18 #include "content/public/browser/page_navigator.h" | 18 #include "content/public/browser/page_navigator.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
21 #include "ui/base/webui/jstemplate_builder.h" | 21 #include "ui/base/webui/jstemplate_builder.h" |
22 #include "ui/base/webui/web_ui_util.h" | 22 #include "ui/base/webui/web_ui_util.h" |
23 | 23 |
24 namespace security_interstitials { | 24 namespace security_interstitials { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 webui::SetLoadTimeDataDefaults( | 111 webui::SetLoadTimeDataDefaults( |
112 controller()->GetApplicationLocale(), &load_time_data); | 112 controller()->GetApplicationLocale(), &load_time_data); |
113 std::string html = ResourceBundle::GetSharedInstance() | 113 std::string html = ResourceBundle::GetSharedInstance() |
114 .GetRawDataResource(IDR_SECURITY_INTERSTITIAL_HTML) | 114 .GetRawDataResource(IDR_SECURITY_INTERSTITIAL_HTML) |
115 .as_string(); | 115 .as_string(); |
116 webui::AppendWebUiCssTextDefaults(&html); | 116 webui::AppendWebUiCssTextDefaults(&html); |
117 return webui::GetI18nTemplateHtml(html, &load_time_data); | 117 return webui::GetI18nTemplateHtml(html, &load_time_data); |
118 } | 118 } |
119 | 119 |
120 } // security_interstitials | 120 } // security_interstitials |
OLD | NEW |