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

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: Fix android build 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..51c2c13254223c04e6427c694f8d686486ec01ce 100644
--- a/chrome/browser/ssl/ssl_blocking_page.h
+++ b/chrome/browser/ssl/ssl_blocking_page.h
@@ -48,16 +48,29 @@ 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();
+ // Creates an SSL blocking page and an interstitial for it, and shows the
+ // interstitial. The interstitial owns the blocking page and is owned by
+ // |web_contents|.
+ 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);
+
+ // Creates an SSL blocking page and an interstitial for it without
+ // showing the interstitial. Since the interstitial isn't shown, the caller is
+ // responsible for cleaning up the blocking page.
+ 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 +89,15 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
virtual void OnDontProceed() OVERRIDE;
private:
+ 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);
+
void NotifyDenyCertificate();
void NotifyAllowCertificate();
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698