#include "chrome/browser/extensions/api/identity/web_auth_flow_info_bar_delegate.h"
#include <string>
#include "base/memory/weak_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/infobars/confirm_infobar_creator.h"
#include "chrome/grit/generated_resources.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/infobars/core/infobar.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
base::WeakPtr<WebAuthFlowInfoBarDelegate> WebAuthFlowInfoBarDelegate::Create(
content::WebContents* web_contents,
const std::string& extension_name) { … }
WebAuthFlowInfoBarDelegate::WebAuthFlowInfoBarDelegate(
const std::string& extension_name)
: … { … }
WebAuthFlowInfoBarDelegate::~WebAuthFlowInfoBarDelegate() = default;
infobars::InfoBarDelegate::InfoBarIdentifier
WebAuthFlowInfoBarDelegate::GetIdentifier() const { … }
std::u16string WebAuthFlowInfoBarDelegate::GetMessageText() const { … }
bool WebAuthFlowInfoBarDelegate::ShouldExpire(
const NavigationDetails& details) const { … }
int WebAuthFlowInfoBarDelegate::GetButtons() const { … }
void WebAuthFlowInfoBarDelegate::CloseInfoBar() { … }
}