OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ |
6 #define MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ | 6 #define MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "base/sync_socket.h" | 12 #include "base/sync_socket.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "media/base/media_export.h" | |
15 #include "media/audio/audio_parameters.h" | 14 #include "media/audio/audio_parameters.h" |
16 #include "media/audio/shared_memory_util.h" | 15 #include "media/audio/shared_memory_util.h" |
| 16 #include "media/base/media_export.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class MessageLoop; | 19 class MessageLoop; |
20 } | 20 } |
21 | 21 |
22 namespace media { | 22 namespace media { |
23 class AudioBus; | 23 class AudioBus; |
24 | 24 |
25 // Data transfer between browser and render process uses a combination | 25 // Data transfer between browser and render process uses a combination |
26 // of sync sockets and shared memory. To read from the socket and render | 26 // of sync sockets and shared memory. To read from the socket and render |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 base::Lock thread_lock_; | 106 base::Lock thread_lock_; |
107 scoped_refptr<AudioDeviceThread::Thread> thread_; | 107 scoped_refptr<AudioDeviceThread::Thread> thread_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(AudioDeviceThread); | 109 DISALLOW_COPY_AND_ASSIGN(AudioDeviceThread); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace media. | 112 } // namespace media. |
113 | 113 |
114 #endif // MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ | 114 #endif // MEDIA_AUDIO_AUDIO_DEVICE_THREAD_H_ |
OLD | NEW |