#include "chrome/browser/extensions/api/debugger/extension_dev_tools_infobar_delegate.h"
#include <memory>
#include <string>
#include <utility>
#include "base/callback_list.h"
#include "base/functional/callback.h"
#include "base/lazy_instance.h"
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "chrome/browser/devtools/global_confirm_info_bar.h"
#include "chrome/grit/generated_resources.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar_delegate.h"
#include "extensions/common/extension_id.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/text_constants.h"
namespace extensions {
namespace {
Delegates;
base::LazyInstance<Delegates>::Leaky g_delegates = …;
}
constexpr base::TimeDelta ExtensionDevToolsInfoBarDelegate::kAutoCloseDelay;
base::CallbackListSubscription ExtensionDevToolsInfoBarDelegate::Create(
const ExtensionId& extension_id,
const std::string& extension_name,
base::OnceClosure destroyed_callback) { … }
ExtensionDevToolsInfoBarDelegate::~ExtensionDevToolsInfoBarDelegate() { … }
infobars::InfoBarDelegate::InfoBarIdentifier
ExtensionDevToolsInfoBarDelegate::GetIdentifier() const { … }
bool ExtensionDevToolsInfoBarDelegate::ShouldExpire(
const NavigationDetails& details) const { … }
const size_t kMaxExtensionNameLength = …;
std::u16string ExtensionDevToolsInfoBarDelegate::GetMessageText() const { … }
gfx::ElideBehavior ExtensionDevToolsInfoBarDelegate::GetMessageElideBehavior()
const { … }
int ExtensionDevToolsInfoBarDelegate::GetButtons() const { … }
ExtensionDevToolsInfoBarDelegate::ExtensionDevToolsInfoBarDelegate(
ExtensionId extension_id,
const std::string& extension_name)
: … { … }
base::CallbackListSubscription
ExtensionDevToolsInfoBarDelegate::RegisterDestroyedCallback(
base::OnceClosure destroyed_callback) { … }
void ExtensionDevToolsInfoBarDelegate::MaybeStartAutocloseTimer() { … }
}