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

Unified Diff: media/audio/audio_thread.h

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass task runners into AudioManager::Create Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/audio_thread.h
diff --git a/media/audio/audio_thread.h b/media/audio/audio_thread.h
new file mode 100644
index 0000000000000000000000000000000000000000..7e83d91b5d92893858385ac5085ac210843af0e3
--- /dev/null
+++ b/media/audio/audio_thread.h
@@ -0,0 +1,25 @@
+// 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
+// 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_H_
+#define MEDIA_AUDIO_AUDIO_THREAD_H_
+
+#include "base/macros.h"
+#include "base/threading/thread.h"
+
+namespace media {
+
+class AudioThread {
+ public:
+ AudioThread();
+ static base::Thread* Get();
+
+ private:
+ base::Thread thread_;
+ DISALLOW_COPY_AND_ASSIGN(AudioThread);
+};
+
+} // namespace media
+
+#endif // MEDIA_AUDIO_AUDIO_THREAD_H_

Powered by Google App Engine
This is Rietveld 408576698