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

Unified Diff: media/audio/audio_device_thread.h

Issue 2640003002: Implement MojoAudioRendererSink and use it in UtilityMojoMediaClient (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « content/common/media/audio_messages.h ('k') | media/audio/audio_device_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_device_thread.h
diff --git a/media/audio/audio_device_thread.h b/media/audio/audio_device_thread.h
index f3287ef39ccf86705642dc5439f7b13860737f1d..10ce8027d64e5c635be14a9e66a22aff66b3d8a5 100644
--- a/media/audio/audio_device_thread.h
+++ b/media/audio/audio_device_thread.h
@@ -7,14 +7,19 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/shared_memory.h"
#include "base/sync_socket.h"
-#include "base/threading/platform_thread.h"
#include "base/threading/thread_checker.h"
#include "media/base/audio_parameters.h"
#include "media/base/media_export.h"
+namespace base {
+class Thread;
+}
+
namespace media {
// Data transfer between browser and render process uses a combination
@@ -79,9 +84,8 @@ class MEDIA_EXPORT AudioDeviceThread : public base::PlatformThread::Delegate {
void ThreadMain() final;
Callback* const callback_;
- const char* thread_name_;
base::CancelableSyncSocket socket_;
- base::PlatformThreadHandle thread_handle_;
+ std::unique_ptr<base::Thread> thread_;
DISALLOW_COPY_AND_ASSIGN(AudioDeviceThread);
};
« no previous file with comments | « content/common/media/audio_messages.h ('k') | media/audio/audio_device_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698