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 CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_ |
6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_ | 6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
15 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
16 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
17 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
18 #include "media/audio/audio_parameters.h" | 17 #include "media/audio/audio_parameters.h" |
19 | 18 |
20 class MessageLoop; | 19 class MessageLoop; |
21 | 20 |
22 // Data transfer between browser and render process uses a combination | 21 // Data transfer between browser and render process uses a combination |
23 // of sync sockets and shared memory. To read from the socket and render | 22 // of sync sockets and shared memory. To read from the socket and render |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // reliable initialization. | 99 // reliable initialization. |
101 class Thread; | 100 class Thread; |
102 | 101 |
103 base::Lock thread_lock_; | 102 base::Lock thread_lock_; |
104 scoped_refptr<AudioDeviceThread::Thread> thread_; | 103 scoped_refptr<AudioDeviceThread::Thread> thread_; |
105 | 104 |
106 DISALLOW_COPY_AND_ASSIGN(AudioDeviceThread); | 105 DISALLOW_COPY_AND_ASSIGN(AudioDeviceThread); |
107 }; | 106 }; |
108 | 107 |
109 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_ | 108 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_THREAD_H_ |
OLD | NEW |