Chromium Code Reviews| 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..0112cf79e3101845734cdb950259315a56450270 100644 |
| --- a/components/security_interstitials/core/controller_client.h |
| +++ b/components/security_interstitials/core/controller_client.h |
| @@ -9,6 +9,7 @@ |
| #include "base/macros.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "components/security_interstitials/core/metrics_helper.h" |
|
estark
2015/12/01 21:41:51
unnecessary, forward-declared below
felt
2015/12/01 22:59:23
Done.
|
| class GURL; |
| class PrefService; |
| @@ -51,7 +52,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 +63,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); |