#include "content/browser/media/webaudio/audio_context_manager_impl.h"
#include <utility>
#include "base/time/default_tick_clock.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
namespace content {
namespace {
int64_t GetBucketedTimeInMilliseconds(const base::TimeDelta& time) { … }
}
void AudioContextManagerImpl::Create(
RenderFrameHost* render_frame_host,
mojo::PendingReceiver<blink::mojom::AudioContextManager> receiver) { … }
AudioContextManagerImpl& AudioContextManagerImpl::CreateForTesting(
RenderFrameHost& render_frame_host,
mojo::PendingReceiver<blink::mojom::AudioContextManager> receiver) { … }
AudioContextManagerImpl::AudioContextManagerImpl(
RenderFrameHost& render_frame_host,
mojo::PendingReceiver<blink::mojom::AudioContextManager> receiver)
: … { … }
AudioContextManagerImpl::~AudioContextManagerImpl() { … }
void AudioContextManagerImpl::AudioContextAudiblePlaybackStarted(
int32_t audio_context_id) { … }
void AudioContextManagerImpl::AudioContextAudiblePlaybackStopped(
int32_t audio_context_id) { … }
void AudioContextManagerImpl::RecordAudibleTime(base::TimeDelta audible_time) { … }
}