// 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. #ifndef MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ #define MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ #include <stdint.h> #include "base/memory/raw_ptr.h" #include "base/sync_socket.h" #include "base/synchronization/atomic_flag.h" #include "base/threading/platform_thread.h" #include "base/threading/thread_checker.h" #include "build/buildflag.h" #include "media/base/audio_parameters.h" #include "media/base/media_export.h" namespace media { // Data transfer between browser and render process uses a combination // of sync sockets and shared memory. To read from the socket and render // data, we use a worker thread, a.k.a. the AudioDeviceThread, which reads // data from the browser via the socket and fills the shared memory from the // audio thread via the AudioDeviceThread::Callback interface/class. class MEDIA_EXPORT AudioDeviceThread : public base::PlatformThread::Delegate { … }; } // namespace media. #endif // MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_