diff options
author | treib@chromium.org <treib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 07:30:42 +0000 |
---|---|---|
committer | treib@chromium.org <treib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 07:30:42 +0000 |
commit | b8af2d1b0bbb50ae4e3546111296adeff5fa42b2 (patch) | |
tree | 6c2076e06d524ef48fbdb195e20a096575aa4acd /chrome/browser/managed_mode/managed_mode_interstitial.h | |
parent | a4a1e2e7b4f001383a521c80cab61ebd26545b4b (diff) | |
download | chromium_src-b8af2d1b0bbb50ae4e3546111296adeff5fa42b2.zip chromium_src-b8af2d1b0bbb50ae4e3546111296adeff5fa42b2.tar.gz chromium_src-b8af2d1b0bbb50ae4e3546111296adeff5fa42b2.tar.bz2 |
Cleanup: Refactor ManagedModeInterstitial to not "delete this" in the ctor.
BUG=
Review URL: https://codereview.chromium.org/250803004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/managed_mode/managed_mode_interstitial.h')
-rw-r--r-- | chrome/browser/managed_mode/managed_mode_interstitial.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/managed_mode/managed_mode_interstitial.h b/chrome/browser/managed_mode/managed_mode_interstitial.h index 06027d6..7acc205 100644 --- a/chrome/browser/managed_mode/managed_mode_interstitial.h +++ b/chrome/browser/managed_mode/managed_mode_interstitial.h @@ -23,12 +23,18 @@ class WebContents; // blocked page, to decide later whether to manually allow it. class ManagedModeInterstitial : public content::InterstitialPageDelegate { public: + static void Show(content::WebContents* web_contents, + const GURL& url, + const base::Callback<void(bool)>& callback); + + private: ManagedModeInterstitial(content::WebContents* web_contents, const GURL& url, const base::Callback<void(bool)>& callback); virtual ~ManagedModeInterstitial(); - private: + bool Init(); + // InterstitialPageDelegate implementation. virtual std::string GetHTMLContents() OVERRIDE; virtual void CommandReceived(const std::string& command) OVERRIDE; |