#include "chrome/browser/download/bubble/download_bubble_accessible_alerts_map.h"
#include <map>
#include <string>
#include <vector>
namespace {
constexpr base::TimeDelta kAlertInterval = …;
constexpr base::TimeDelta kAlertMaxStaleness = …;
constexpr base::TimeDelta kTrackAlertedTimesThreshold = …;
ContentId;
}
DownloadBubbleAccessibleAlertsMap::Alert::Alert(Urgency urgency,
std::u16string_view alert_text)
: … { … }
DownloadBubbleAccessibleAlertsMap::Alert::Alert(const Alert& other) = default;
DownloadBubbleAccessibleAlertsMap::Alert&
DownloadBubbleAccessibleAlertsMap::Alert::operator=(const Alert& other) =
default;
DownloadBubbleAccessibleAlertsMap::Alert::Alert(Alert&& other) = default;
DownloadBubbleAccessibleAlertsMap::Alert&
DownloadBubbleAccessibleAlertsMap::Alert::operator=(Alert&& other) = default;
bool DownloadBubbleAccessibleAlertsMap::Alert::ShouldBeReplacedBy(
const DownloadBubbleAccessibleAlertsMap::Alert& newer) const { … }
bool DownloadBubbleAccessibleAlertsMap::Alert::IsStale() const { … }
DownloadBubbleAccessibleAlertsMap::DownloadBubbleAccessibleAlertsMap() =
default;
DownloadBubbleAccessibleAlertsMap::~DownloadBubbleAccessibleAlertsMap() =
default;
bool DownloadBubbleAccessibleAlertsMap::MaybeAddAccessibleAlert(
const offline_items_collection::ContentId& content_id,
Alert alert) { … }
std::vector<std::u16string>
DownloadBubbleAccessibleAlertsMap::TakeAlertsForAnnouncement() { … }
void DownloadBubbleAccessibleAlertsMap::GarbageCollect() { … }