forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudio_thread_impl.h
35 lines (26 loc) · 1000 Bytes
/
audio_thread_impl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_
#define MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_
#include "base/threading/thread.h"
#include "base/threading/thread_checker.h"
#include "media/audio/audio_thread.h"
namespace media {
class MEDIA_EXPORT AudioThreadImpl : public AudioThread {
public:
AudioThreadImpl();
~AudioThreadImpl() override;
// AudioThread implementation.
void Stop() override;
base::SingleThreadTaskRunner* GetTaskRunner() override;
base::SingleThreadTaskRunner* GetWorkerTaskRunner() override;
private:
base::Thread thread_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_;
THREAD_CHECKER(thread_checker_);
DISALLOW_COPY_AND_ASSIGN(AudioThreadImpl);
};
} // namespace content
#endif // MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_