blob: 57b82c7d3a6996ebd4b8d143fd16c6b8ec0d8032 [file] [log] [blame]
// Copyright 2019 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 COMPONENTS_SAFE_BROWSING_SAFE_BROWSING_CONTROLLER_CLIENT_H_
#define COMPONENTS_SAFE_BROWSING_SAFE_BROWSING_CONTROLLER_CLIENT_H_
#include "base/macros.h"
#include "components/security_interstitials/content/security_interstitial_controller_client.h"
namespace content {
class WebContents;
}
namespace security_interstitials {
class MetricsHelper;
}
class PrefService;
namespace safe_browsing {
// Provides embedder-specific logic for the Safe Browsing interstitial page
// controller.
class SafeBrowsingControllerClient
: public security_interstitials::SecurityInterstitialControllerClient {
public:
SafeBrowsingControllerClient(
content::WebContents* web_contents,
std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper,
PrefService* prefs,
const std::string& app_locale,
const GURL& default_safe_page);
~SafeBrowsingControllerClient() override;
void Proceed() override;
void GoBack() override;
private:
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingControllerClient);
};
} // namespace safe_browsing
#endif // COMPONENTS_SAFE_BROWSING_SAFE_BROWSING_CONTROLLER_CLIENT_H_