blob: b6ddf17150d20dd1f8caacbf86b84174a1b2e5f0 [file] [log] [blame]
henrika5f6bf242017-11-01 11:06:56 +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:
30 rtc::ThreadChecker thread_checker_;
31 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_