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

Side by Side Diff: content/browser/speech/speech_recognition_dispatcher_host.cc

Issue 1889523002: Remove SpeechRecognitionSessionConfig::is_legacy_api (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 (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 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 5 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "content/browser/browser_plugin/browser_plugin_guest.h" 10 #include "content/browser/browser_plugin/browser_plugin_guest.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 context.render_process_id = render_process_id_; 151 context.render_process_id = render_process_id_;
152 context.render_view_id = params.render_view_id; 152 context.render_view_id = params.render_view_id;
153 context.render_frame_id = params_render_frame_id; 153 context.render_frame_id = params_render_frame_id;
154 context.embedder_render_process_id = embedder_render_process_id; 154 context.embedder_render_process_id = embedder_render_process_id;
155 context.embedder_render_view_id = embedder_render_view_id; 155 context.embedder_render_view_id = embedder_render_view_id;
156 if (embedder_render_process_id) 156 if (embedder_render_process_id)
157 context.guest_render_view_id = params.render_view_id; 157 context.guest_render_view_id = params.render_view_id;
158 context.request_id = params.request_id; 158 context.request_id = params.request_id;
159 159
160 SpeechRecognitionSessionConfig config; 160 SpeechRecognitionSessionConfig config;
161 config.is_legacy_api = false;
162 config.language = params.language; 161 config.language = params.language;
163 config.grammars = params.grammars; 162 config.grammars = params.grammars;
164 config.max_hypotheses = params.max_hypotheses; 163 config.max_hypotheses = params.max_hypotheses;
165 config.origin_url = params.origin_url; 164 config.origin_url = params.origin_url;
166 config.initial_context = context; 165 config.initial_context = context;
167 config.url_request_context_getter = context_getter_.get(); 166 config.url_request_context_getter = context_getter_.get();
168 config.filter_profanities = filter_profanities; 167 config.filter_profanities = filter_profanities;
169 config.continuous = params.continuous; 168 config.continuous = params.continuous;
170 config.interim_results = params.interim_results; 169 config.interim_results = params.interim_results;
171 config.event_listener = AsWeakPtr(); 170 config.event_listener = AsWeakPtr();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void SpeechRecognitionDispatcherHost::OnAudioLevelsChange(int session_id, 272 void SpeechRecognitionDispatcherHost::OnAudioLevelsChange(int session_id,
274 float volume, 273 float volume,
275 float noise_volume) { 274 float noise_volume) {
276 } 275 }
277 276
278 void SpeechRecognitionDispatcherHost::OnEnvironmentEstimationComplete( 277 void SpeechRecognitionDispatcherHost::OnEnvironmentEstimationComplete(
279 int session_id) { 278 int session_id) {
280 } 279 }
281 280
282 } // namespace content 281 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698