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

Unified Diff: components/security_interstitials/core/controller_client.h

Issue 1481213003: Componentize the bad clock blocking page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing includes FOR REALSIES Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: components/security_interstitials/core/controller_client.h
diff --git a/components/security_interstitials/core/controller_client.h b/components/security_interstitials/core/controller_client.h
index 6eb41e0b59e3fd519598693b4dd727b4de54d382..6f0b47bb74d82c305f19b53c7e6164422905ec0a 100644
--- a/components/security_interstitials/core/controller_client.h
+++ b/components/security_interstitials/core/controller_client.h
@@ -51,7 +51,8 @@ enum SecurityInterstitialCommands {
};
// Provides methods for handling commands from the user, which requires some
-// embedder-specific abstraction.
+// embedder-specific abstraction. This class should handle all commands sent
+// by the JavaScript error page.
class ControllerClient {
public:
ControllerClient();
@@ -61,6 +62,13 @@ class ControllerClient {
void SetReportingPreference(bool report);
void OpenExtendedReportingPrivacyPolicy();
+ // If available, open the operating system's date/time settings.
+ virtual bool CanLaunchDateAndTimeSettings() = 0;
+ virtual void LaunchDateAndTimeSettings() = 0;
+
+ // Close the error and go back to the previous page.
+ virtual void GoBack() = 0;
+
MetricsHelper* metrics_helper() const;
void set_metrics_helper(scoped_ptr<MetricsHelper> metrics_helper);

Powered by Google App Engine
This is Rietveld 408576698