BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / login / login_interstitial_delegate.h
blob0ae6ffcd255747d28269de924f1fa6625a1060c4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_
8 #include <string>
10 #include "base/callback.h"
11 #include "content/public/browser/interstitial_page.h"
12 #include "content/public/browser/interstitial_page_delegate.h"
13 #include "url/gurl.h"
15 class LoginHandler;
17 namespace content {
18 class WebContents;
21 namespace net {
22 class AuthChallengeInfo;
25 // Placeholder interstitial for HTTP login prompts. This interstitial makes the
26 // omnibox show the correct url when the login prompt is visible.
27 class LoginInterstitialDelegate : public content::InterstitialPageDelegate {
28 public:
29 // Interstitial type, used in tests.
30 static content::InterstitialPageDelegate::TypeID kTypeForTesting;
32 LoginInterstitialDelegate(content::WebContents* web_contents,
33 const GURL& request_url,
34 base::Closure& callback);
36 ~LoginInterstitialDelegate() override;
38 // content::InterstitialPageDelegate:
39 void CommandReceived(const std::string& command) override;
40 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
42 protected:
43 std::string GetHTMLContents() override;
45 private:
46 base::Closure callback_;
48 DISALLOW_COPY_AND_ASSIGN(LoginInterstitialDelegate);
51 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_