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

Unified Diff: chrome/browser/interstitials/chrome_controller_client.h

Issue 1481213003: Componentize the bad clock blocking page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Temporary trybot truce gives town the time to fortify defenses Created 5 years, 1 month 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: chrome/browser/interstitials/chrome_controller_client.h
diff --git a/chrome/browser/interstitials/chrome_controller_client.h b/chrome/browser/interstitials/chrome_controller_client.h
index 36342332b96a9be4e6977c6d2d8406dd013fb742..5599a440ef58cbd783d519655fb77150bb36fc67 100644
--- a/chrome/browser/interstitials/chrome_controller_client.h
+++ b/chrome/browser/interstitials/chrome_controller_client.h
@@ -7,10 +7,8 @@
#include "base/macros.h"
#include "components/security_interstitials/core/controller_client.h"
-
-namespace content {
-class WebContents;
-}
+#include "content/public/browser/interstitial_page.h"
+#include "content/public/browser/web_contents.h"
estark 2015/12/01 18:40:17 can these be left as forward-declarations?
felt 2015/12/01 19:13:44 Gah, I was just working in google3 where forward-d
// Provides embedder-specific logic for the security error page controller.
class ChromeControllerClient : public security_interstitials::ControllerClient {
@@ -18,6 +16,13 @@ class ChromeControllerClient : public security_interstitials::ControllerClient {
explicit ChromeControllerClient(content::WebContents* web_contents);
~ChromeControllerClient() override;
+ void set_interstitial_page(content::InterstitialPage* interstitial_page);
+
+ // security_interstitials::ControllerClient overrides
+ bool CanLaunchDateAndTimeSettings() override;
+ void LaunchDateAndTimeSettings() override;
+ void GoBack() override;
+
protected:
// security_interstitials::ControllerClient overrides
void OpenUrlInCurrentTab(const GURL& url) override;
@@ -27,6 +32,7 @@ class ChromeControllerClient : public security_interstitials::ControllerClient {
private:
content::WebContents* web_contents_;
+ content::InterstitialPage* interstitial_page_;
DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient);
};
« no previous file with comments | « no previous file | chrome/browser/interstitials/chrome_controller_client.cc » ('j') | chrome/browser/ssl/bad_clock_blocking_page.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698