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

Side by Side Diff: components/security_interstitials/core/base_safe_browsing_error_ui.cc

Issue 2890703002: SafeBrowsing: allow WebView to customize the Help Center URL (Closed)
Patch Set: Rebase and fix compile errors, no logic change Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/core/base_safe_browsing_error_ui.h" 5 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h"
6 6
7 namespace security_interstitials { 7 namespace security_interstitials {
8 8
9 BaseSafeBrowsingErrorUI::BaseSafeBrowsingErrorUI( 9 BaseSafeBrowsingErrorUI::BaseSafeBrowsingErrorUI(
10 const GURL& request_url, 10 const GURL& request_url,
11 const GURL& main_frame_url, 11 const GURL& main_frame_url,
12 BaseSafeBrowsingErrorUI::SBInterstitialReason reason, 12 BaseSafeBrowsingErrorUI::SBInterstitialReason reason,
13 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options, 13 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options,
14 const std::string& app_locale, 14 const std::string& app_locale,
15 const base::Time& time_triggered, 15 const base::Time& time_triggered,
16 ControllerClient* controller) 16 ControllerClient* controller)
17 : request_url_(request_url), 17 : request_url_(request_url),
18 main_frame_url_(main_frame_url), 18 main_frame_url_(main_frame_url),
19 interstitial_reason_(reason), 19 interstitial_reason_(reason),
20 display_options_(display_options), 20 display_options_(display_options),
21 app_locale_(app_locale), 21 app_locale_(app_locale),
22 time_triggered_(time_triggered), 22 time_triggered_(time_triggered),
23 controller_(controller) {} 23 controller_(controller) {}
24 24
25 BaseSafeBrowsingErrorUI::~BaseSafeBrowsingErrorUI() {} 25 BaseSafeBrowsingErrorUI::~BaseSafeBrowsingErrorUI() {}
26 26
27 BaseSafeBrowsingErrorUI::SBErrorDisplayOptions::SBErrorDisplayOptions(
28 bool is_main_frame_load_blocked,
29 bool is_extended_reporting_opt_in_allowed,
30 bool is_off_the_record,
31 bool is_extended_reporting_enabled,
32 bool is_scout_reporting_enabled,
33 bool is_proceed_anyway_disabled,
34 bool is_resource_cancellable,
35 const std::string& help_center_article_link)
36 : is_main_frame_load_blocked(is_main_frame_load_blocked),
37 is_extended_reporting_opt_in_allowed(
38 is_extended_reporting_opt_in_allowed),
39 is_off_the_record(is_off_the_record),
40 is_extended_reporting_enabled(is_extended_reporting_enabled),
41 is_scout_reporting_enabled(is_scout_reporting_enabled),
42 is_proceed_anyway_disabled(is_proceed_anyway_disabled),
43 is_resource_cancellable(is_resource_cancellable),
44 help_center_article_link(help_center_article_link) {}
45
46 BaseSafeBrowsingErrorUI::SBErrorDisplayOptions::SBErrorDisplayOptions(
47 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& other)
48 : is_main_frame_load_blocked(other.is_main_frame_load_blocked),
49 is_extended_reporting_opt_in_allowed(
50 other.is_extended_reporting_opt_in_allowed),
51 is_off_the_record(other.is_off_the_record),
52 is_extended_reporting_enabled(other.is_extended_reporting_enabled),
53 is_scout_reporting_enabled(other.is_scout_reporting_enabled),
54 is_proceed_anyway_disabled(other.is_proceed_anyway_disabled),
55 is_resource_cancellable(other.is_resource_cancellable),
56 help_center_article_link(other.help_center_article_link) {}
57
27 } // security_interstitials 58 } // security_interstitials
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698