blob: ad38b8c037dee85da9d176874ed2d9c87c43adab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_
#define IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_
#include <string>
#include "base/macros.h"
#include "components/security_interstitials/core/controller_client.h"
class GURL;
namespace web {
class WebInterstitial;
class WebState;
}
// Provides embedder-specific logic for the security error page controller.
class IOSChromeControllerClient
: public security_interstitials::ControllerClient {
public:
explicit IOSChromeControllerClient(web::WebState* web_state);
~IOSChromeControllerClient() override;
void SetWebInterstitial(web::WebInterstitial* web_interstitial);
private:
// security_interstitials::ControllerClient implementation.
bool CanLaunchDateAndTimeSettings() override;
void LaunchDateAndTimeSettings() override;
void GoBack() override;
void Proceed() override;
void Reload() override;
void OpenUrlInCurrentTab(const GURL& url) override;
const std::string& GetApplicationLocale() override;
PrefService* GetPrefService() override;
const std::string GetExtendedReportingPrefName() override;
web::WebState* web_state_;
web::WebInterstitial* web_interstitial_;
DISALLOW_COPY_AND_ASSIGN(IOSChromeControllerClient);
};
#endif // IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_
|