summaryrefslogtreecommitdiffstats
path: root/chrome/browser/managed_mode/managed_mode_interstitial.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/managed_mode/managed_mode_interstitial.h')
-rw-r--r--chrome/browser/managed_mode/managed_mode_interstitial.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/managed_mode/managed_mode_interstitial.h b/chrome/browser/managed_mode/managed_mode_interstitial.h
index 1bfc346d..98aeaef 100644
--- a/chrome/browser/managed_mode/managed_mode_interstitial.h
+++ b/chrome/browser/managed_mode/managed_mode_interstitial.h
@@ -28,6 +28,16 @@ class ManagedModeInterstitial : public content::InterstitialPageDelegate {
const base::Callback<void(bool)>& callback);
virtual ~ManagedModeInterstitial();
+ // Should be called on the IO thread.
+ // |render_process_host_id| and |render_view_id| identify the WebContents
+ // where the request was blocked. |url| is the URL that was blocked.
+ // |callback| should be called with the result (whether to allow the request
+ // or not).
+ static void ShowInterstitial(int render_process_host_id,
+ int render_view_id,
+ const GURL& url,
+ const base::Callback<void(bool)>& callback);
+
private:
void GoToNewTabPage();
@@ -40,6 +50,7 @@ class ManagedModeInterstitial : public content::InterstitialPageDelegate {
// Will be called when the passphrase dialog is closed, which is shown after
// clicking the preview button.
void OnAuthorizationResult(bool success);
+ void DispatchContinueRequest(bool continue_request);
// Owns the interstitial, which owns us.
content::WebContents* web_contents_;