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

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: cleanup 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
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 "media/audio/audio_thread.h"
10
11 namespace media {
12
13 class MEDIA_EXPORT AudioThreadImpl : public AudioThread {
14 public:
15 AudioThreadImpl();
16 ~AudioThreadImpl() override;
17
18 // AudioThread implementation.
19 void Stop() override;
20 base::SingleThreadTaskRunner* GetTaskRunner() override;
21 base::SingleThreadTaskRunner* GetWorkerTaskRunner() override;
22
23 private:
24 base::Thread thread_;
25 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
26 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_;
27
28 DISALLOW_COPY_AND_ASSIGN(AudioThreadImpl);
29 };
30
31 } // namespace content
32
33 #endif // MEDIA_AUDIO_AUDIO_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698