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

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

Issue 1481213003: Componentize the bad clock blocking page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change for pkasting Created 5 years 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
« no previous file with comments | « chrome/browser/ssl/bad_clock_blocking_page.cc ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 protected: 54 protected:
55 // Returns true if the connection is a Wi-Fi connection. Virtual for tests. 55 // Returns true if the connection is a Wi-Fi connection. Virtual for tests.
56 virtual bool IsWifiConnection() const; 56 virtual bool IsWifiConnection() const;
57 // Returns the SSID of the connected Wi-Fi network, if any. Virtual for tests. 57 // Returns the SSID of the connected Wi-Fi network, if any. Virtual for tests.
58 virtual std::string GetWiFiSSID() const; 58 virtual std::string GetWiFiSSID() const;
59 59
60 // SecurityInterstitialPage methods: 60 // SecurityInterstitialPage methods:
61 bool ShouldCreateNewNavigation() const override; 61 bool ShouldCreateNewNavigation() const override;
62 void PopulateInterstitialStrings( 62 void PopulateInterstitialStrings(
63 base::DictionaryValue* load_time_data) override; 63 base::DictionaryValue* load_time_data) override;
64 void AfterShow() override {}
64 65
65 // InterstitialPageDelegate method: 66 // InterstitialPageDelegate method:
66 void CommandReceived(const std::string& command) override; 67 void CommandReceived(const std::string& command) override;
67 void OnProceed() override; 68 void OnProceed() override;
68 void OnDontProceed() override; 69 void OnDontProceed() override;
69 70
70 private: 71 private:
71 // URL of the login page, opened when the user clicks the "Connect" button. 72 // URL of the login page, opened when the user clicks the "Connect" button.
72 const GURL login_url_; 73 const GURL login_url_;
73 scoped_ptr<CertReportHelper> cert_report_helper_; 74 scoped_ptr<CertReportHelper> cert_report_helper_;
74 base::Callback<void(bool)> callback_; 75 base::Callback<void(bool)> callback_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage); 77 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage);
77 }; 78 };
78 79
79 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 80 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/bad_clock_blocking_page.cc ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698