blob: d16494d69a1a8ecfa9b34928712be4269af87d33 [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 CHROME_BROWSER_PLUGINS_FLASH_DEPRECATION_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_PLUGINS_FLASH_DEPRECATION_INFOBAR_DELEGATE_H_
#include "components/infobars/core/confirm_infobar_delegate.h"
class Profile;
class InfoBarService;
class FlashDeprecationInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
static void Create(InfoBarService* infobar_service, Profile* profile);
// Returns true if we should display a deprecation warning for
// |host_content_settings_map|.
static bool ShouldDisplayFlashDeprecation(Profile* profile);
explicit FlashDeprecationInfoBarDelegate(Profile* profile);
~FlashDeprecationInfoBarDelegate() override = default;
// ConfirmInfobarDelegate:
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
const gfx::VectorIcon& GetVectorIcon() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
bool Accept() override;
base::string16 GetLinkText() const override;
GURL GetLinkURL() const override;
void InfoBarDismissed() override;
private:
Profile* const profile_;
};
#endif // CHROME_BROWSER_PLUGINS_FLASH_DEPRECATION_INFOBAR_DELEGATE_H_