1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/shell/browser/shell_speech_recognition_manager_delegate.h"
7 #include "content/public/browser/browser_thread.h"
13 void ShellSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
14 int session_id
, Callback
<void(bool ask_user
, bool is_allowed
)> callback
) {
15 // In content_shell, we expect speech recognition to happen when requested.
16 // Therefore we simply authorize it by calling back with is_allowed=true. The
17 // first parameter, ask_user, is set to false because we don't want to prompt
18 // the user for permission with an infobar.
19 BrowserThread::PostTask(
20 BrowserThread::IO
, FROM_HERE
, base::Bind(callback
, false, true));
23 SpeechRecognitionEventListener
*
24 ShellSpeechRecognitionManagerDelegate::GetEventListener() {
28 bool ShellSpeechRecognitionManagerDelegate::FilterProfanities(
29 int render_process_id
) {
33 } // namespace content