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

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

Issue 2330753002: Update links for the SBER opt-in on interstitials (Closed)
Patch Set: Update variable name Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 CMD_OPEN_HELP_CENTER = 3, 39 CMD_OPEN_HELP_CENTER = 3,
40 CMD_OPEN_DIAGNOSTIC = 4, 40 CMD_OPEN_DIAGNOSTIC = 4,
41 // Primary button actions 41 // Primary button actions
42 CMD_RELOAD = 5, 42 CMD_RELOAD = 5,
43 CMD_OPEN_DATE_SETTINGS = 6, 43 CMD_OPEN_DATE_SETTINGS = 6,
44 CMD_OPEN_LOGIN = 7, 44 CMD_OPEN_LOGIN = 7,
45 // Safe Browsing Extended Reporting 45 // Safe Browsing Extended Reporting
46 CMD_DO_REPORT = 8, 46 CMD_DO_REPORT = 8,
47 CMD_DONT_REPORT = 9, 47 CMD_DONT_REPORT = 9,
48 CMD_OPEN_REPORTING_PRIVACY = 10, 48 CMD_OPEN_REPORTING_PRIVACY = 10,
49 CMD_OPEN_WHITEPAPER = 11,
49 // Report a phishing error 50 // Report a phishing error
50 CMD_REPORT_PHISHING_ERROR = 11, 51 CMD_REPORT_PHISHING_ERROR = 12,
51 }; 52 };
52 53
53 // Provides methods for handling commands from the user, which requires some 54 // Provides methods for handling commands from the user, which requires some
54 // embedder-specific abstraction. This class should handle all commands sent 55 // embedder-specific abstraction. This class should handle all commands sent
55 // by the JavaScript error page. 56 // by the JavaScript error page.
56 class ControllerClient { 57 class ControllerClient {
57 public: 58 public:
58 ControllerClient(); 59 ControllerClient();
59 virtual ~ControllerClient(); 60 virtual ~ControllerClient();
60 61
61 // Handle the user's reporting preferences. 62 // Handle the user's reporting preferences.
62 void SetReportingPreference(bool report); 63 void SetReportingPreference(bool report);
63 void OpenExtendedReportingPrivacyPolicy(); 64 void OpenExtendedReportingPrivacyPolicy();
65 void OpenExtendedReportingWhitepaper();
64 66
65 // If available, open the operating system's date/time settings. 67 // If available, open the operating system's date/time settings.
66 virtual bool CanLaunchDateAndTimeSettings() = 0; 68 virtual bool CanLaunchDateAndTimeSettings() = 0;
67 virtual void LaunchDateAndTimeSettings() = 0; 69 virtual void LaunchDateAndTimeSettings() = 0;
68 70
69 // Close the error and go back to the previous page. 71 // Close the error and go back to the previous page.
70 virtual void GoBack() = 0; 72 virtual void GoBack() = 0;
71 73
72 // Close the error and proceed to the blocked page. 74 // Close the error and proceed to the blocked page.
73 virtual void Proceed() = 0; 75 virtual void Proceed() = 0;
(...skipping 13 matching lines...) Expand all
87 89
88 private: 90 private:
89 std::unique_ptr<MetricsHelper> metrics_helper_; 91 std::unique_ptr<MetricsHelper> metrics_helper_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(ControllerClient); 93 DISALLOW_COPY_AND_ASSIGN(ControllerClient);
92 }; 94 };
93 95
94 } // namespace security_interstitials 96 } // namespace security_interstitials
95 97
96 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 98 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698