blob: 97cd2c7e6c6cc7d8d1e11bc12703bfb3c6c95248 [file] [log] [blame]
Sebastian Janssonfdbbada2020-01-30 18:13:541/*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef AUDIO_NULL_AUDIO_POLLER_H_
12#define AUDIO_NULL_AUDIO_POLLER_H_
13
14#include <stdint.h>
15
16#include "modules/audio_device/include/audio_device_defines.h"
17#include "rtc_base/message_handler.h"
18#include "rtc_base/thread_checker.h"
19
20namespace webrtc {
21namespace internal {
22
23class NullAudioPoller final : public rtc::MessageHandler {
24 public:
25 explicit NullAudioPoller(AudioTransport* audio_transport);
26 ~NullAudioPoller() override;
27
28 protected:
29 void OnMessage(rtc::Message* msg) override;
30
31 private:
32 rtc::ThreadChecker thread_checker_;
33 AudioTransport* const audio_transport_;
34 int64_t reschedule_at_;
35};
36
37} // namespace internal
38} // namespace webrtc
39
40#endif // AUDIO_NULL_AUDIO_POLLER_H_