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

Side by Side Diff: chrome/browser/ssl/captive_portal_blocking_page.h

Issue 2408713003: Show red lock icon on captive portal SSL interstitial (Closed)
Patch Set: Created 4 years, 2 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
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_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 5 #ifndef CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
6 #define CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 6 #define CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/interstitials/security_interstitial_page.h" 13 #include "chrome/browser/interstitials/security_interstitial_page.h"
14 #include "content/public/browser/certificate_request_result_type.h" 14 #include "content/public/browser/certificate_request_result_type.h"
15 #include "net/ssl/ssl_info.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 #if !defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 18 #if !defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
18 #error This file must be built with ENABLE_CAPTIVE_PORTAL_DETECTION flag. 19 #error This file must be built with ENABLE_CAPTIVE_PORTAL_DETECTION flag.
19 #endif 20 #endif
20 21
21 namespace content { 22 namespace content {
23 class NavigationEntry;
22 class WebContents; 24 class WebContents;
23 } 25 }
24 26
25 namespace net { 27 namespace net {
26 class SSLInfo; 28 class SSLInfo;
27 } 29 }
28 30
29 class CertReportHelper; 31 class CertReportHelper;
30 class SSLCertReporter; 32 class SSLCertReporter;
31 33
(...skipping 28 matching lines...) Expand all
60 // Returns the SSID of the connected Wi-Fi network, if any. Virtual for tests. 62 // Returns the SSID of the connected Wi-Fi network, if any. Virtual for tests.
61 virtual std::string GetWiFiSSID() const; 63 virtual std::string GetWiFiSSID() const;
62 64
63 // SecurityInterstitialPage methods: 65 // SecurityInterstitialPage methods:
64 bool ShouldCreateNewNavigation() const override; 66 bool ShouldCreateNewNavigation() const override;
65 void PopulateInterstitialStrings( 67 void PopulateInterstitialStrings(
66 base::DictionaryValue* load_time_data) override; 68 base::DictionaryValue* load_time_data) override;
67 69
68 // InterstitialPageDelegate method: 70 // InterstitialPageDelegate method:
69 void CommandReceived(const std::string& command) override; 71 void CommandReceived(const std::string& command) override;
72 void OverrideEntry(content::NavigationEntry* entry) override;
70 void OnProceed() override; 73 void OnProceed() override;
71 void OnDontProceed() override; 74 void OnDontProceed() override;
72 75
73 private: 76 private:
74 // URL of the login page, opened when the user clicks the "Connect" button. 77 // URL of the login page, opened when the user clicks the "Connect" button.
75 const GURL login_url_; 78 const GURL login_url_;
76 std::unique_ptr<CertReportHelper> cert_report_helper_; 79 std::unique_ptr<CertReportHelper> cert_report_helper_;
80 const net::SSLInfo ssl_info_;
77 base::Callback<void(content::CertificateRequestResultType)> callback_; 81 base::Callback<void(content::CertificateRequestResultType)> callback_;
78 82
79 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage); 83 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage);
80 }; 84 };
81 85
82 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 86 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/captive_portal_blocking_page.cc » ('j') | chrome/browser/ssl/captive_portal_blocking_page.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698