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

Unified Diff: chrome/browser/ssl/ssl_blocking_page.h

Issue 368143002: Add a chrome://interstitials page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bauerb comments Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ssl/ssl_blocking_page.h
diff --git a/chrome/browser/ssl/ssl_blocking_page.h b/chrome/browser/ssl/ssl_blocking_page.h
index f9782cd65c3433ab2474f7a11b8e0e15928666d7..a4224a20ba3f9e601fd3117068c27e4215006495 100644
--- a/chrome/browser/ssl/ssl_blocking_page.h
+++ b/chrome/browser/ssl/ssl_blocking_page.h
@@ -48,16 +48,23 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
CMD_CLOCK = 5
};
- SSLBlockingPage(
- content::WebContents* web_contents,
- int cert_error,
- const net::SSLInfo& ssl_info,
- const GURL& request_url,
- bool overridable,
- bool strict_enforcement,
- const base::Callback<void(bool)>& callback);
virtual ~SSLBlockingPage();
+ static void Show(content::WebContents* web_contents,
+ int cert_error,
+ const net::SSLInfo& ssl_info,
+ const GURL& request_url,
+ bool overridable,
+ bool strict_enforcement,
+ const base::Callback<void(bool)>& callback);
+
+ static SSLBlockingPage* CreateForWebUI(content::WebContents* web_contents,
+ int cert_error,
+ const net::SSLInfo& ssl_info,
+ const GURL& request_url,
+ bool overridable,
+ bool strict_enforcement);
+
// A method that sets strings in the specified dictionary from the passed
// vector so that they can be used to resource the ssl_roadblock.html/
// ssl_error.html files.
@@ -76,6 +83,16 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
virtual void OnDontProceed() OVERRIDE;
private:
+ SSLBlockingPage(
+ content::WebContents* web_contents,
+ bool create_interstitial,
+ int cert_error,
+ const net::SSLInfo& ssl_info,
+ const GURL& request_url,
+ bool overridable,
+ bool strict_enforcement,
+ const base::Callback<void(bool)>& callback);
+
void NotifyDenyCertificate();
void NotifyAllowCertificate();

Powered by Google App Engine
This is Rietveld 408576698