| 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_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 Loading... |
| 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_ |
| OLD | NEW |