OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUDIO_DEVICE_H_ | 5 #ifndef CONTENT_RENDERER_AUDIO_DEVICE_H_ |
scherkus (not reviewing)
2011/06/13 18:15:45
update header guard
| |
6 #define CONTENT_RENDERER_AUDIO_DEVICE_H_ | 6 #define CONTENT_RENDERER_AUDIO_DEVICE_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/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
14 #include "base/threading/simple_thread.h" | 14 #include "base/threading/simple_thread.h" |
15 #include "content/renderer/audio_message_filter.h" | 15 #include "content/renderer/media/audio_message_filter.h" |
16 | 16 |
17 struct AudioParameters; | 17 struct AudioParameters; |
18 | 18 |
19 // Each instance of AudioDevice corresponds to one host stream. | 19 // Each instance of AudioDevice corresponds to one host stream. |
20 // This class is not thread-safe, so its methods must be called from | 20 // This class is not thread-safe, so its methods must be called from |
21 // the same thread. | 21 // the same thread. |
22 class AudioDevice : public AudioMessageFilter::Delegate, | 22 class AudioDevice : public AudioMessageFilter::Delegate, |
23 public base::DelegateSimpleThread::Delegate, | 23 public base::DelegateSimpleThread::Delegate, |
24 public base::RefCountedThreadSafe<AudioDevice> { | 24 public base::RefCountedThreadSafe<AudioDevice> { |
25 public: | 25 public: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 // or else you could race with the initialize function which sets it. | 112 // or else you could race with the initialize function which sets it. |
113 int32 stream_id_; | 113 int32 stream_id_; |
114 | 114 |
115 scoped_ptr<base::SharedMemory> shared_memory_; | 115 scoped_ptr<base::SharedMemory> shared_memory_; |
116 scoped_ptr<base::SyncSocket> socket_; | 116 scoped_ptr<base::SyncSocket> socket_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(AudioDevice); | 118 DISALLOW_COPY_AND_ASSIGN(AudioDevice); |
119 }; | 119 }; |
120 | 120 |
121 #endif // CONTENT_RENDERER_AUDIO_DEVICE_H_ | 121 #endif // CONTENT_RENDERER_AUDIO_DEVICE_H_ |
OLD | NEW |