chromium/extensions/browser/api/offscreen/audio_lifetime_enforcer.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/browser/api/offscreen/audio_lifetime_enforcer.h"

#include "base/task/single_thread_task_runner.h"
#include "base/task/task_runner.h"
#include "extensions/browser/offscreen_document_host.h"

namespace extensions {

namespace {

// The amount of time for a document to be considered inactive when not playing
// audio.
base::TimeDelta g_audio_timeout =;

}  // namespace

AudioLifetimeEnforcer::AudioLifetimeEnforcer(
    OffscreenDocumentHost* offscreen_document,
    TerminationCallback termination_callback,
    NotifyInactiveCallback notify_inactive_callback)
    :{}

AudioLifetimeEnforcer::~AudioLifetimeEnforcer() = default;

// static
base::AutoReset<base::TimeDelta> AudioLifetimeEnforcer::SetTimeoutForTesting(
    base::TimeDelta timeout) {}

bool AudioLifetimeEnforcer::IsActive() {}

void AudioLifetimeEnforcer::OnAudioStateChanged(bool audible) {}

void AudioLifetimeEnforcer::PostTimeoutTask() {}

void AudioLifetimeEnforcer::OnAudioTimeout() {}

}  // namespace extensions