#include "components/infobars/core/infobar_manager.h"
#include <utility>
#include "base/command_line.h"
#include "base/observer_list.h"
#include "base/ranges/algorithm.h"
#include "build/branding_buildflags.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar.h"
#include "components/infobars/core/infobars_switches.h"
#include "ui/gfx/switches.h"
namespace infobars {
namespace {
bool DisableInfoBars() { … }
}
InfoBarManager::Observer::~Observer() { … }
void InfoBarManager::Observer::OnInfoBarAdded(InfoBar* infobar) { … }
void InfoBarManager::Observer::OnInfoBarRemoved(InfoBar* infobar,
bool animate) { … }
void InfoBarManager::Observer::OnInfoBarReplaced(InfoBar* old_infobar,
InfoBar* new_infobar) { … }
void InfoBarManager::Observer::OnManagerShuttingDown(InfoBarManager* manager) { … }
InfoBar* InfoBarManager::AddInfoBar(std::unique_ptr<InfoBar> new_infobar,
bool replace_existing) { … }
void InfoBarManager::RemoveInfoBar(InfoBar* infobar) { … }
void InfoBarManager::RemoveAllInfoBars(bool animate) { … }
InfoBar* InfoBarManager::ReplaceInfoBar(InfoBar* old_infobar,
std::unique_ptr<InfoBar> new_infobar) { … }
void InfoBarManager::AddObserver(Observer* obs) { … }
void InfoBarManager::RemoveObserver(Observer* obs) { … }
InfoBarManager::InfoBarManager() : … { … }
InfoBarManager::~InfoBarManager() = default;
void InfoBarManager::ShutDown() { … }
void InfoBarManager::OnNavigation(
const InfoBarDelegate::NavigationDetails& details) { … }
void InfoBarManager::RemoveInfoBarInternal(InfoBar* infobar, bool animate) { … }
bool InfoBarManager::ShouldShowInfoBar(const InfoBar* infobar) const { … }
}