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

Side by Side Diff: components/security_interstitials/core/safe_browsing_loud_error_ui.h

Issue 2852333003: Rename SafeBrowsingErrorUI to SafeBrowsingLoudErrorUI (Closed)
Patch Set: Comments 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_
7
8 #include "base/macros.h"
9 #include "base/time/time.h"
10 #include "base/values.h"
11 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h"
12 #include "components/security_interstitials/core/controller_client.h"
13 #include "url/gurl.h"
14
15 namespace security_interstitials {
16
17 // Loud version of the safe browsing interstitial. This is the full screen
18 // version of the interstitial used on Desktop, Android and iOS. It is
19 // selectively used in parts of WebView.
20 // This class displays UI for Safe Browsing errors that block page loads. This
21 // class is purely about visual display; it does not do any error-handling logic
22 // to determine what type of error should be displayed when.
23 class SafeBrowsingLoudErrorUI
24 : public security_interstitials::BaseSafeBrowsingErrorUI {
25 public:
26 SafeBrowsingLoudErrorUI(
27 const GURL& request_url,
28 const GURL& main_frame_url,
29 BaseSafeBrowsingErrorUI::SBInterstitialReason reason,
30 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options,
31 const std::string& app_locale,
32 const base::Time& time_triggered,
33 ControllerClient* controller);
34
35 ~SafeBrowsingLoudErrorUI() override;
36
37 // Implement BaseSafeBrowsingErrorUI.
38 void PopulateStringsForHTML(base::DictionaryValue* load_time_data) override;
39 void HandleCommand(SecurityInterstitialCommands command) override;
40
41 private:
42 // Fills the passed dictionary with the values to be passed to the template
43 // when creating the HTML.
44 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data);
45 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data);
46 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data);
47 void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data);
48
49 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingLoudErrorUI);
50 };
51
52 } // security_interstitials
53
54 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_SAFE_BROWSING_LOUD_ERROR_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698