// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // AudioInputDeviceManager manages the audio input devices. In particular it // communicates with MediaStreamManager and RenderFrameAudioInputStreamFactory // on the browser IO thread, handles queries like // enumerate/open/close/GetOpenedDeviceById from MediaStreamManager and // GetOpenedDeviceById from RenderFrameAudioInputStreamFactory. // The work for enumerate/open/close is handled asynchronously on Media Stream // device thread, while GetOpenedDeviceById is synchronous on the IO thread. #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEVICE_MANAGER_H_ #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEVICE_MANAGER_H_ #include <map> #include <string> #include <vector> #include "base/memory/raw_ptr.h" #include "base/observer_list.h" #include "base/threading/thread.h" #include "base/unguessable_token.h" #include "build/build_config.h" #include "build/chromeos_buildflags.h" #include "content/browser/renderer_host/media/media_stream_provider.h" #include "content/common/content_export.h" #include "third_party/blink/public/common/mediastream/media_stream_request.h" namespace media { class AudioSystem; } namespace content { // Should be used on IO thread only. class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider { … }; } // namespace content #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEVICE_MANAGER_H_