Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: media/audio/audio_thread_impl.h

Issue 2784433002: Ensures that audio tasks cannot run after AudioManager is deleted. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/audio/audio_thread.h ('k') | media/audio/audio_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_
6 #define MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_
7
8 #include "base/threading/thread.h"
9 #include "base/threading/thread_checker.h"
10 #include "media/audio/audio_thread.h"
11
12 namespace media {
13
14 class MEDIA_EXPORT AudioThreadImpl : public AudioThread {
15 public:
16 AudioThreadImpl();
17 ~AudioThreadImpl() override;
18
19 // AudioThread implementation.
20 void Stop() override;
21 base::SingleThreadTaskRunner* GetTaskRunner() override;
22 base::SingleThreadTaskRunner* GetWorkerTaskRunner() override;
23
24 private:
25 base::Thread thread_;
26 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
27 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_;
28
29 THREAD_CHECKER(thread_checker_);
30 DISALLOW_COPY_AND_ASSIGN(AudioThreadImpl);
31 };
32
33 } // namespace content
34
35 #endif // MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « media/audio/audio_thread.h ('k') | media/audio/audio_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698