OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // omnibox show the correct url when the login prompt is visible. | 26 // omnibox show the correct url when the login prompt is visible. |
27 class LoginInterstitialDelegate : public content::InterstitialPageDelegate { | 27 class LoginInterstitialDelegate : public content::InterstitialPageDelegate { |
28 public: | 28 public: |
29 LoginInterstitialDelegate(content::WebContents* web_contents, | 29 LoginInterstitialDelegate(content::WebContents* web_contents, |
30 const GURL& request_url, | 30 const GURL& request_url, |
31 base::Closure& callback); | 31 base::Closure& callback); |
32 | 32 |
33 virtual ~LoginInterstitialDelegate(); | 33 virtual ~LoginInterstitialDelegate(); |
34 | 34 |
35 // content::InterstitialPageDelegate: | 35 // content::InterstitialPageDelegate: |
36 virtual void CommandReceived(const std::string& command) OVERRIDE; | 36 virtual void CommandReceived(const std::string& command) override; |
37 | 37 |
38 protected: | 38 protected: |
39 virtual std::string GetHTMLContents() OVERRIDE; | 39 virtual std::string GetHTMLContents() override; |
40 | 40 |
41 private: | 41 private: |
42 base::Closure callback_; | 42 base::Closure callback_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(LoginInterstitialDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(LoginInterstitialDelegate); |
45 }; | 45 }; |
46 | 46 |
47 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ | 47 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ |
OLD | NEW |