blob: 27c7e991a8ea6b3778bbb4088ef09847b7367af7 [file] [log] [blame]
henrika90bace02017-10-31 12:53:48 +01001/*
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 "modules/audio_device/include/audio_device_defines.h"
15#include "rtc_base/messagehandler.h"
16#include "rtc_base/thread_checker.h"
17
18namespace webrtc {
19namespace internal {
20
21class NullAudioPoller final : public rtc::MessageHandler {
22 public:
23 explicit NullAudioPoller(AudioTransport* audio_transport);
24 ~NullAudioPoller();
25
26 protected:
27 void OnMessage(rtc::Message* msg) override;
28
29 private:
Mirko Bonadeie4be4b72017-11-01 02:35:07 +000030 const rtc::ThreadChecker thread_checker_;
henrika90bace02017-10-31 12:53:48 +010031 AudioTransport* const audio_transport_;
32 int64_t reschedule_at_;
33};
34
35} // namespace internal
36} // namespace webrtc
37
38#endif // AUDIO_NULL_AUDIO_POLLER_H_