| 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 <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 "chrome/common/features.h" |
| 14 #include "content/public/browser/certificate_request_result_type.h" | 15 #include "content/public/browser/certificate_request_result_type.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 #if !defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 18 #if !BUILDFLAG(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 { |
| 22 class WebContents; | 23 class WebContents; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace net { | 26 namespace net { |
| 26 class SSLInfo; | 27 class SSLInfo; |
| 27 } | 28 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 private: | 74 private: |
| 74 // URL of the login page, opened when the user clicks the "Connect" button. | 75 // URL of the login page, opened when the user clicks the "Connect" button. |
| 75 const GURL login_url_; | 76 const GURL login_url_; |
| 76 std::unique_ptr<CertReportHelper> cert_report_helper_; | 77 std::unique_ptr<CertReportHelper> cert_report_helper_; |
| 77 base::Callback<void(content::CertificateRequestResultType)> callback_; | 78 base::Callback<void(content::CertificateRequestResultType)> callback_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage); | 80 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ | 83 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ |
| OLD | NEW |