Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
DaleCurtis
2016/03/18 17:48:19
What is this class getting us? It seems to be pret
alokp
2016/03/18 18:40:07
It lazily creates the thread. See AudioThread::Get
| |
| 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_H_ | |
| 6 #define MEDIA_AUDIO_AUDIO_THREAD_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/threading/thread.h" | |
| 10 | |
| 11 namespace media { | |
| 12 | |
| 13 class AudioThread { | |
| 14 public: | |
| 15 AudioThread(); | |
| 16 static base::Thread* Get(); | |
| 17 | |
| 18 private: | |
| 19 base::Thread thread_; | |
| 20 DISALLOW_COPY_AND_ASSIGN(AudioThread); | |
| 21 }; | |
| 22 | |
| 23 } // namespace media | |
| 24 | |
| 25 #endif // MEDIA_AUDIO_AUDIO_THREAD_H_ | |
| OLD | NEW |