#include "media/audio/aecdump_recording_manager.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "media/audio/audio_manager.h"
namespace media {
namespace {
void CloseFileWithoutBlocking(base::File file) { … }
}
AecdumpRecordingManager::AecdumpRecordingManager(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
AecdumpRecordingManager::~AecdumpRecordingManager() { … }
void AecdumpRecordingManager::EnableDebugRecording(
CreateFileCallback create_file_callback) { … }
void AecdumpRecordingManager::StartRecording(AecdumpRecordingSource* source,
base::File file) { … }
void AecdumpRecordingManager::DisableDebugRecording() { … }
void AecdumpRecordingManager::RegisterAecdumpSource(
AecdumpRecordingSource* source) { … }
void AecdumpRecordingManager::DeregisterAecdumpSource(
AecdumpRecordingSource* source) { … }
bool AecdumpRecordingManager::IsDebugRecordingEnabled() const { … }
void AecdumpRecordingManager::StartRecordingIfValidPointer(
base::WeakPtr<AecdumpRecordingManager> manager,
AecdumpRecordingSource* source,
base::File file) { … }
}