Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: chrome/browser/ui/login/login_interstitial_delegate.h

Issue 403933002: Set SSL info when an HTTP auth dialog is triggered by direct navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just use pending navigation entry for everything Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "content/public/browser/interstitial_page.h" 11 #include "content/public/browser/interstitial_page.h"
12 #include "content/public/browser/interstitial_page_delegate.h" 12 #include "content/public/browser/interstitial_page_delegate.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 class LoginHandler; 15 class LoginHandler;
16 16
17 namespace content { 17 namespace content {
18 struct SSLStatus;
18 class WebContents; 19 class WebContents;
19 } 20 }
20 21
21 namespace net { 22 namespace net {
22 class AuthChallengeInfo; 23 class AuthChallengeInfo;
23 } 24 }
24 25
25 // Placeholder interstitial for HTTP login prompts. This interstitial makes the 26 // Placeholder interstitial for HTTP login prompts. This interstitial makes the
26 // omnibox show the correct url when the login prompt is visible. 27 // omnibox show the correct url when the login prompt is visible.
27 class LoginInterstitialDelegate : public content::InterstitialPageDelegate { 28 class LoginInterstitialDelegate : public content::InterstitialPageDelegate {
28 public: 29 public:
29 // Interstitial type, used in tests. 30 // Interstitial type, used in tests.
30 static content::InterstitialPageDelegate::TypeID kTypeForTesting; 31 static content::InterstitialPageDelegate::TypeID kTypeForTesting;
31 32
32 LoginInterstitialDelegate(content::WebContents* web_contents, 33 LoginInterstitialDelegate(content::WebContents* web_contents,
33 const GURL& request_url, 34 const GURL& request_url,
35 const content::SSLStatus& ssl_status,
34 base::Closure& callback); 36 base::Closure& callback);
35 37
36 ~LoginInterstitialDelegate() override; 38 ~LoginInterstitialDelegate() override;
37 39
38 // content::InterstitialPageDelegate: 40 // content::InterstitialPageDelegate:
39 void CommandReceived(const std::string& command) override; 41 void CommandReceived(const std::string& command) override;
40 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override; 42 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
41 43
42 protected: 44 protected:
43 std::string GetHTMLContents() override; 45 std::string GetHTMLContents() override;
46 void OverrideEntry(content::NavigationEntry* entry) override;
44 47
45 private: 48 private:
49 content::WebContents* web_contents_;
50 const content::SSLStatus& ssl_status_;
46 base::Closure callback_; 51 base::Closure callback_;
47 52
48 DISALLOW_COPY_AND_ASSIGN(LoginInterstitialDelegate); 53 DISALLOW_COPY_AND_ASSIGN(LoginInterstitialDelegate);
49 }; 54 };
50 55
51 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_ 56 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_INTERSTITIAL_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/login/login_interstitial_delegate.cc » ('j') | chrome/browser/ui/login/login_prompt.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698