#include "chrome/browser/ui/recently_audible_helper.h"
#include "base/no_destructor.h"
#include "base/time/default_tick_clock.h"
namespace {
const base::TickClock* GetDefaultTickClock() { … }
}
constexpr base::TimeDelta RecentlyAudibleHelper::kRecentlyAudibleTimeout;
RecentlyAudibleHelper::~RecentlyAudibleHelper() = default;
bool RecentlyAudibleHelper::WasEverAudible() const { … }
bool RecentlyAudibleHelper::IsCurrentlyAudible() const { … }
bool RecentlyAudibleHelper::WasRecentlyAudible() const { … }
base::CallbackListSubscription
RecentlyAudibleHelper::RegisterCallbackForTesting(const Callback& callback) { … }
RecentlyAudibleHelper::RecentlyAudibleHelper(content::WebContents* contents)
: … { … }
void RecentlyAudibleHelper::OnAudioStateChanged(bool audible) { … }
void RecentlyAudibleHelper::OnRecentlyAudibleTimerFired() { … }
void RecentlyAudibleHelper::TransitionToNotCurrentlyAudible() { … }
void RecentlyAudibleHelper::SetTickClockForTesting(
const base::TickClock* tick_clock) { … }
void RecentlyAudibleHelper::SetCurrentlyAudibleForTesting() { … }
void RecentlyAudibleHelper::SetRecentlyAudibleForTesting() { … }
void RecentlyAudibleHelper::SetNotRecentlyAudibleForTesting() { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(RecentlyAudibleHelper);