#include "extensions/browser/api/audio/audio_service.h"
namespace extensions {
class AudioServiceImpl : public AudioService { … };
void AudioServiceImpl::AddObserver(Observer* observer) { … }
void AudioServiceImpl::RemoveObserver(Observer* observer) { … }
AudioService::Ptr AudioService::CreateInstance(
AudioDeviceIdCalculator* id_calculator) { … }
void AudioServiceImpl::GetDevices(
const api::audio::DeviceFilter* filter,
base::OnceCallback<void(bool, DeviceInfoList)> callback) { … }
void AudioServiceImpl::SetActiveDeviceLists(
const DeviceIdList* input_devices,
const DeviceIdList* output_devives,
base::OnceCallback<void(bool)> callback) { … }
void AudioServiceImpl::SetDeviceSoundLevel(
const std::string& device_id,
int level_value,
base::OnceCallback<void(bool)> callback) { … }
void AudioServiceImpl::SetMute(bool is_input,
bool value,
base::OnceCallback<void(bool)> callback) { … }
void AudioServiceImpl::GetMute(bool is_input,
base::OnceCallback<void(bool, bool)> callback) { … }
}