Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: content/renderer/media/speech_recognition_audio_sink.h

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
11 #include "base/sync_socket.h" 14 #include "base/sync_socket.h"
12 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
13 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
14 #include "content/public/renderer/media_stream_audio_sink.h" 17 #include "content/public/renderer/media_stream_audio_sink.h"
15 #include "media/audio/audio_parameters.h" 18 #include "media/audio/audio_parameters.h"
16 #include "media/base/audio_converter.h" 19 #include "media/base/audio_converter.h"
17 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 20 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
18 21
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Params of the source audio. Can change when |OnSetFormat()| occurs. 99 // Params of the source audio. Can change when |OnSetFormat()| occurs.
97 media::AudioParameters input_params_; 100 media::AudioParameters input_params_;
98 101
99 // Params used by speech recognition. 102 // Params used by speech recognition.
100 const media::AudioParameters output_params_; 103 const media::AudioParameters output_params_;
101 104
102 // Whether the track has been stopped. 105 // Whether the track has been stopped.
103 bool track_stopped_; 106 bool track_stopped_;
104 107
105 // Local counter of audio buffers for synchronization. 108 // Local counter of audio buffers for synchronization.
106 uint32 buffer_index_; 109 uint32_t buffer_index_;
107 110
108 // Callback for the renderer client. Called when the audio track was stopped. 111 // Callback for the renderer client. Called when the audio track was stopped.
109 const OnStoppedCB on_stopped_cb_; 112 const OnStoppedCB on_stopped_cb_;
110 113
111 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionAudioSink); 114 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionAudioSink);
112 }; 115 };
113 116
114 } // namespace content 117 } // namespace content
115 118
116 #endif // CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_ 119 #endif // CONTENT_RENDERER_MEDIA_SPEECH_RECOGNITION_AUDIO_SINK_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_encoder_factory.h ('k') | content/renderer/media/speech_recognition_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698