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); |