blob: 94e96427e2d85c21bb1a76c091fd8e7783f3319a [file] [log] [blame]
// Copyright (c) 2012 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_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
#include "components/infobars/core/confirm_infobar_delegate.h"
namespace infobars {
class ContentInfoBarManager;
}
class NaClInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
// Creates a NaCl infobar and delegate and adds the infobar to
// |infobar_manager|.
static void Create(infobars::ContentInfoBarManager* infobar_manager);
private:
NaClInfoBarDelegate();
~NaClInfoBarDelegate() override;
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
std::u16string GetLinkText() const override;
GURL GetLinkURL() const override;
std::u16string GetMessageText() const override;
int GetButtons() const override;
DISALLOW_COPY_AND_ASSIGN(NaClInfoBarDelegate);
};
#endif // CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_