diff options
author | akuegel@chromium.org <akuegel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-21 00:47:32 +0000 |
---|---|---|
committer | akuegel@chromium.org <akuegel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-21 00:47:32 +0000 |
commit | bddf6153d15b02f44f1ff3a8795ca8639827cc0d (patch) | |
tree | 421658e0e42dab772388f60a2c2d8a1736db9274 /chrome/browser/managed_mode/managed_mode_interstitial.h | |
parent | 0e2f43b6a863a7e6f0840ca60e0f598d28e4e413 (diff) | |
download | chromium_src-bddf6153d15b02f44f1ff3a8795ca8639827cc0d.zip chromium_src-bddf6153d15b02f44f1ff3a8795ca8639827cc0d.tar.gz chromium_src-bddf6153d15b02f44f1ff3a8795ca8639827cc0d.tar.bz2 |
Require authentication when clicking the preview button on
the managed mode interstitial. Only when the user
successfully authenticates, the preview is shown. The
authentication is reset once the user does another
navigation.
BUG=171370
TEST=Manual,Browser Test
Review URL: https://chromiumcodereview.appspot.com/12330007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183683 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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/managed_mode/managed_mode_interstitial.h b/chrome/browser/managed_mode/managed_mode_interstitial.h index 887f1f7..98aeaef 100644 --- a/chrome/browser/managed_mode/managed_mode_interstitial.h +++ b/chrome/browser/managed_mode/managed_mode_interstitial.h @@ -9,6 +9,7 @@ #include "base/callback.h" #include "base/compiler_specific.h" +#include "base/memory/weak_ptr.h" #include "content/public/browser/interstitial_page_delegate.h" #include "googleurl/src/gurl.h" @@ -46,6 +47,9 @@ class ManagedModeInterstitial : public content::InterstitialPageDelegate { virtual void OnProceed() OVERRIDE; virtual void OnDontProceed() OVERRIDE; + // 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. @@ -57,6 +61,7 @@ class ManagedModeInterstitial : public content::InterstitialPageDelegate { std::string languages_; GURL url_; + base::WeakPtrFactory<ManagedModeInterstitial> weak_ptr_factory_; base::Callback<void(bool)> callback_; DISALLOW_COPY_AND_ASSIGN(ManagedModeInterstitial); |