1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef IOS_COMPONENTS_SECURITY_INTERSTITIALS_LEGACY_TLS_LEGACY_TLS_CONTROLLER_CLIENT_H_
6 #define IOS_COMPONENTS_SECURITY_INTERSTITIALS_LEGACY_TLS_LEGACY_TLS_CONTROLLER_CLIENT_H_
7 
8 #include "ios/components/security_interstitials/ios_blocking_page_controller_client.h"
9 #include "url/gurl.h"
10 
11 class GURL;
12 
13 namespace web {
14 class WebState;
15 }  // namespace web
16 
17 // Controller client used for legacy TLS blocking pages.
18 class LegacyTLSControllerClient
19     : public security_interstitials::IOSBlockingPageControllerClient {
20  public:
21   LegacyTLSControllerClient(web::WebState* web_state,
22                             const GURL& request_url,
23                             const std::string& app_locale);
24   ~LegacyTLSControllerClient() override;
25 
26   // security_interstitials::ControllerClient:
27   void Proceed() override;
28 
29  private:
30   // The URL of the page causing the insterstitial.
31   const GURL request_url_;
32 };
33 
34 #endif  // IOS_COMPONENTS_SECURITY_INTERSTITIALS_LEGACY_TLS_LEGACY_TLS_CONTROLLER_CLIENT_H_
35