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

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

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "net/base/escape.h" 43 #include "net/base/escape.h"
44 #include "ui/base/l10n/l10n_util.h" 44 #include "ui/base/l10n/l10n_util.h"
45 45
46 using base::UserMetricsAction; 46 using base::UserMetricsAction;
47 using content::BrowserThread; 47 using content::BrowserThread;
48 using content::InterstitialPage; 48 using content::InterstitialPage;
49 using content::OpenURLParams; 49 using content::OpenURLParams;
50 using content::Referrer; 50 using content::Referrer;
51 using content::WebContents; 51 using content::WebContents;
52 52
53 namespace safe_browsing {
54
53 namespace { 55 namespace {
54 56
55 // For malware interstitial pages, we link the problematic URL to Google's 57 // For malware interstitial pages, we link the problematic URL to Google's
56 // diagnostic page. 58 // diagnostic page.
57 #if defined(GOOGLE_CHROME_BUILD) 59 #if defined(GOOGLE_CHROME_BUILD)
58 const char kSbDiagnosticUrl[] = 60 const char kSbDiagnosticUrl[] =
59 "https://www.google.com/safebrowsing/diagnostic?site=%s&client=googlechrome" ; 61 "https://www.google.com/safebrowsing/diagnostic?site=%s&client=googlechrome" ;
60 #else 62 #else
61 const char kSbDiagnosticUrl[] = 63 const char kSbDiagnosticUrl[] =
62 "https://www.google.com/safebrowsing/diagnostic?site=%s&client=chromium"; 64 "https://www.google.com/safebrowsing/diagnostic?site=%s&client=chromium";
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 "finalParagraph", l10n_util::GetStringUTF16( 719 "finalParagraph", l10n_util::GetStringUTF16(
718 IDS_PHISHING_V4_PROCEED_AND_REPORT_PARAGRAPH)); 720 IDS_PHISHING_V4_PROCEED_AND_REPORT_PARAGRAPH));
719 } else { 721 } else {
720 load_time_data->SetString( 722 load_time_data->SetString(
721 "finalParagraph", 723 "finalParagraph",
722 l10n_util::GetStringUTF16(IDS_PHISHING_V3_PROCEED_PARAGRAPH)); 724 l10n_util::GetStringUTF16(IDS_PHISHING_V3_PROCEED_PARAGRAPH));
723 } 725 }
724 726
725 PopulateExtendedReportingOption(load_time_data); 727 PopulateExtendedReportingOption(load_time_data);
726 } 728 }
729
730 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698