Chromium Code Reviews| 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_INPUT_DEVICE_H_ | 5 #ifndef CONTENT_RENDERER_AUDIO_INPUT_DEVICE_H_ |
|
scherkus (not reviewing)
2011/06/13 18:15:45
update header guard
| |
| 6 #define CONTENT_RENDERER_AUDIO_INPUT_DEVICE_H_ | 6 #define CONTENT_RENDERER_AUDIO_INPUT_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_input_message_filter.h" | 15 #include "content/renderer/media/audio_input_message_filter.h" |
| 16 | 16 |
| 17 struct AudioParameters; | 17 struct AudioParameters; |
| 18 | 18 |
| 19 // Each instance of AudioInputDevice corresponds to one host stream. | 19 // Each instance of AudioInputDevice 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 | 22 |
| 23 // TODO(henrika): This class is based on the AudioDevice class and it has | 23 // TODO(henrika): This class is based on the AudioDevice class and it has |
| 24 // many components in common. Investigate potential for re-factoring. | 24 // many components in common. Investigate potential for re-factoring. |
| 25 class AudioInputDevice : public AudioInputMessageFilter::Delegate, | 25 class AudioInputDevice : public AudioInputMessageFilter::Delegate, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 // or else you could race with the initialize function which sets it. | 113 // or else you could race with the initialize function which sets it. |
| 114 int32 stream_id_; | 114 int32 stream_id_; |
| 115 | 115 |
| 116 scoped_ptr<base::SharedMemory> shared_memory_; | 116 scoped_ptr<base::SharedMemory> shared_memory_; |
| 117 scoped_ptr<base::SyncSocket> socket_; | 117 scoped_ptr<base::SyncSocket> socket_; |
| 118 | 118 |
| 119 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputDevice); | 119 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputDevice); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // CONTENT_RENDERER_AUDIO_INPUT_DEVICE_H_ | 122 #endif // CONTENT_RENDERER_AUDIO_INPUT_DEVICE_H_ |
| OLD | NEW |