Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc

Issue 11885021: Don't derive from ChromeURLDataManager::DataSource, and instead have these classes implement a dele… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 strings->SetBoolean("isMainFrame", is_main_frame_load_blocked_); 938 strings->SetBoolean("isMainFrame", is_main_frame_load_blocked_);
939 strings->SetBoolean("isPhishing", interstitial_type_ == TYPE_PHISHING); 939 strings->SetBoolean("isPhishing", interstitial_type_ == TYPE_PHISHING);
940 940
941 strings->SetString("back_button", 941 strings->SetString("back_button",
942 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_BACK_BUTTON)); 942 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_BACK_BUTTON));
943 strings->SetString("seeMore", l10n_util::GetStringUTF16( 943 strings->SetString("seeMore", l10n_util::GetStringUTF16(
944 IDS_SAFE_BROWSING_MALWARE_V2_SEE_MORE)); 944 IDS_SAFE_BROWSING_MALWARE_V2_SEE_MORE));
945 strings->SetString("proceed", 945 strings->SetString("proceed",
946 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_V2_PROCEED_LINK)); 946 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_V2_PROCEED_LINK));
947 947
948 ChromeURLDataManager::DataSource::SetFontAndTextDirection(strings); 948 URLDataSource::SetFontAndTextDirection(strings);
949 } 949 }
950 950
951 void SafeBrowsingBlockingPageV2::PopulateMultipleThreatStringDictionary( 951 void SafeBrowsingBlockingPageV2::PopulateMultipleThreatStringDictionary(
952 DictionaryValue* strings) { 952 DictionaryValue* strings) {
953 NOTREACHED(); 953 NOTREACHED();
954 } 954 }
955 955
956 void SafeBrowsingBlockingPageV2::PopulateMalwareStringDictionary( 956 void SafeBrowsingBlockingPageV2::PopulateMalwareStringDictionary(
957 DictionaryValue* strings) { 957 DictionaryValue* strings) {
958 std::string diagnostic_link = base::StringPrintf(kSbDiagnosticHtml, 958 std::string diagnostic_link = base::StringPrintf(kSbDiagnosticHtml,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 1041
1042 strings->SetString("details", ""); 1042 strings->SetString("details", "");
1043 strings->SetString("confirm_text", ""); 1043 strings->SetString("confirm_text", "");
1044 strings->SetString(kBoxChecked, ""); 1044 strings->SetString(kBoxChecked, "");
1045 strings->SetString("report_error", 1045 strings->SetString("report_error",
1046 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_PHISHING_V2_REPORT_ERROR)); 1046 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_PHISHING_V2_REPORT_ERROR));
1047 strings->SetBoolean(kDisplayCheckBox, false); 1047 strings->SetBoolean(kDisplayCheckBox, false);
1048 strings->SetString("learnMore", 1048 strings->SetString("learnMore",
1049 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_V2_LEARN_MORE)); 1049 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_V2_LEARN_MORE));
1050 } 1050 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698