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 // Implementation of the SafeBrowsingBlockingPage class. | 5 // Implementation of the SafeBrowsingBlockingPage class. |
6 | 6 |
7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" | 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
34 #include "components/google/core/browser/google_util.h" | 34 #include "components/google/core/browser/google_util.h" |
35 #include "content/public/browser/browser_thread.h" | 35 #include "content/public/browser/browser_thread.h" |
36 #include "content/public/browser/interstitial_page.h" | 36 #include "content/public/browser/interstitial_page.h" |
37 #include "content/public/browser/navigation_controller.h" | 37 #include "content/public/browser/navigation_controller.h" |
38 #include "content/public/browser/user_metrics.h" | 38 #include "content/public/browser/user_metrics.h" |
39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
40 #include "grit/browser_resources.h" | 40 #include "grit/browser_resources.h" |
41 #include "grit/chromium_strings.h" | |
42 #include "grit/generated_resources.h" | 41 #include "grit/generated_resources.h" |
43 #include "grit/locale_settings.h" | 42 #include "grit/locale_settings.h" |
44 #include "net/base/escape.h" | 43 #include "net/base/escape.h" |
45 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
46 #include "ui/base/resource/resource_bundle.h" | 45 #include "ui/base/resource/resource_bundle.h" |
47 #include "ui/base/webui/jstemplate_builder.h" | 46 #include "ui/base/webui/jstemplate_builder.h" |
48 #include "ui/base/webui/web_ui_util.h" | 47 #include "ui/base/webui/web_ui_util.h" |
49 | 48 |
50 #if defined(ENABLE_EXTENSIONS) | 49 #if defined(ENABLE_EXTENSIONS) |
51 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" | 50 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 IDS_PHISHING_V3_PRIMARY_PARAGRAPH, | 960 IDS_PHISHING_V3_PRIMARY_PARAGRAPH, |
962 base::UTF8ToUTF16(url_.host()))); | 961 base::UTF8ToUTF16(url_.host()))); |
963 load_time_data->SetString( | 962 load_time_data->SetString( |
964 "explanationParagraph", | 963 "explanationParagraph", |
965 l10n_util::GetStringFUTF16(IDS_PHISHING_V3_EXPLANATION_PARAGRAPH, | 964 l10n_util::GetStringFUTF16(IDS_PHISHING_V3_EXPLANATION_PARAGRAPH, |
966 base::UTF8ToUTF16(url_.host()))); | 965 base::UTF8ToUTF16(url_.host()))); |
967 load_time_data->SetString( | 966 load_time_data->SetString( |
968 "finalParagraph", | 967 "finalParagraph", |
969 l10n_util::GetStringUTF16(IDS_PHISHING_V3_PROCEED_PARAGRAPH)); | 968 l10n_util::GetStringUTF16(IDS_PHISHING_V3_PROCEED_PARAGRAPH)); |
970 } | 969 } |
OLD | NEW |