// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ #include <memory> #include <string> #include "base/functional/callback.h" #include "components/security_interstitials/content/ssl_blocking_page_base.h" #include "content/public/browser/certificate_request_result_type.h" #include "net/ssl/ssl_info.h" #include "url/gurl.h" namespace content { class WebContents; } // namespace content namespace net { class SSLInfo; } // This class is responsible for showing/hiding the interstitial page that is // shown when a captive portal triggers an SSL error. // It deletes itself when the interstitial page is closed. // // This class should only be used on the UI thread because its implementation // uses captive_portal::CaptivePortalService, which can only be accessed on the // UI thread. Only used when ENABLE_CAPTIVE_PORTAL_DETECTION is true. class CaptivePortalBlockingPage : public SSLBlockingPageBase { … }; #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_CAPTIVE_PORTAL_BLOCKING_PAGE_H_