Replace IdleNotification calls with IdleNotificationDeadline
[chromium-blink-merge.git] / content / shell / browser / shell_speech_recognition_manager_delegate.cc
blob0b0778d0f718508d998a12ba64abf5a7010ef815
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"
9 using base::Callback;
11 namespace content {
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() {
25 return NULL;
28 bool ShellSpeechRecognitionManagerDelegate::FilterProfanities(
29 int render_process_id) {
30 return false;
33 } // namespace content