Chromium Code Reviews| 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_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ |
| 7 | 7 |
| 8 #include "base/file_descriptor_posix.h" | |
| 9 #include "base/process/process.h" | 8 #include "base/process/process.h" |
| 10 #include "base/sync_socket.h" | 9 #include "base/sync_socket.h" |
| 11 #include "media/audio/audio_input_controller.h" | 10 #include "media/audio/audio_input_controller.h" |
| 12 | 11 |
| 12 #if defined(OS_POSIX) | |
|
brettw
2014/03/07 06:32:25
Does this need to be in an ifdef? Usually I don't
rvargas (doing something else)
2014/03/07 19:16:21
Yes, because file_descriptor_posix assumes that Pl
| |
| 13 #include "base/file_descriptor_posix.h" | |
| 14 #endif | |
| 15 | |
| 13 namespace base { | 16 namespace base { |
| 14 class SharedMemory; | 17 class SharedMemory; |
| 15 } | 18 } |
| 16 | 19 |
| 17 namespace content { | 20 namespace content { |
| 18 // A AudioInputController::SyncWriter implementation using SyncSocket. This | 21 // A AudioInputController::SyncWriter implementation using SyncSocket. This |
| 19 // is used by AudioInputController to provide a low latency data source for | 22 // is used by AudioInputController to provide a low latency data source for |
| 20 // transmitting audio packets between the browser process and the renderer | 23 // transmitting audio packets between the browser process and the renderer |
| 21 // process. | 24 // process. |
| 22 class AudioInputSyncWriter : public media::AudioInputController::SyncWriter { | 25 class AudioInputSyncWriter : public media::AudioInputController::SyncWriter { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 // Socket to be used by the renderer. The reference is released after | 57 // Socket to be used by the renderer. The reference is released after |
| 55 // PrepareForeignSocketHandle() is called and ran successfully. | 58 // PrepareForeignSocketHandle() is called and ran successfully. |
| 56 scoped_ptr<base::CancelableSyncSocket> foreign_socket_; | 59 scoped_ptr<base::CancelableSyncSocket> foreign_socket_; |
| 57 | 60 |
| 58 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputSyncWriter); | 61 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputSyncWriter); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace content | 64 } // namespace content |
| 62 | 65 |
| 63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ | 66 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ |
| OLD | NEW |