OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SPEECH_RECOGNITION_AUDIO_SINK_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_ |
6 #define CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_ | 6 #define CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/shared_memory.h" | 14 #include "base/memory/shared_memory.h" |
15 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 #include "content/public/renderer/media_stream_audio_sink.h" | 18 #include "content/public/renderer/media_stream_audio_sink.h" |
19 #include "media/audio/audio_parameters.h" | |
20 #include "media/base/audio_converter.h" | 19 #include "media/base/audio_converter.h" |
| 20 #include "media/base/audio_parameters.h" |
21 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 21 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 class AudioBus; | 24 class AudioBus; |
25 class AudioFifo; | 25 class AudioFifo; |
26 } | 26 } |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 // SpeechRecognitionAudioSink works as an audio sink to the | 30 // SpeechRecognitionAudioSink works as an audio sink to the |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // Callback for the renderer client. Called when the audio track was stopped. | 112 // Callback for the renderer client. Called when the audio track was stopped. |
113 const OnStoppedCB on_stopped_cb_; | 113 const OnStoppedCB on_stopped_cb_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionAudioSink); | 115 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionAudioSink); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
119 | 119 |
120 #endif // CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_ | 120 #endif // CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_ |
OLD | NEW |