| 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 EXTENSIONS_SHELL_BROWSER_SHELL_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/speech_recognition_event_listener.h" | 8 #include "content/public/browser/speech_recognition_event_listener.h" |
| 9 #include "content/public/browser/speech_recognition_manager_delegate.h" | 9 #include "content/public/browser/speech_recognition_manager_delegate.h" |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 std::string* hardware_info) override; | 42 std::string* hardware_info) override; |
| 43 void CheckRecognitionIsAllowed( | 43 void CheckRecognitionIsAllowed( |
| 44 int session_id, | 44 int session_id, |
| 45 base::Callback<void(bool ask_user, bool is_allowed)> callback) override; | 45 base::Callback<void(bool ask_user, bool is_allowed)> callback) override; |
| 46 content::SpeechRecognitionEventListener* GetEventListener() override; | 46 content::SpeechRecognitionEventListener* GetEventListener() override; |
| 47 bool FilterProfanities(int render_process_id) override; | 47 bool FilterProfanities(int render_process_id) override; |
| 48 | 48 |
| 49 static void CheckRenderViewType( | 49 static void CheckRenderViewType( |
| 50 base::Callback<void(bool ask_user, bool is_allowed)> callback, | 50 base::Callback<void(bool ask_user, bool is_allowed)> callback, |
| 51 int render_process_id, | 51 int render_process_id, |
| 52 int render_view_id); | 52 int render_frame_id); |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(ShellSpeechRecognitionManagerDelegate); | 54 DISALLOW_COPY_AND_ASSIGN(ShellSpeechRecognitionManagerDelegate); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace speech | 57 } // namespace speech |
| 58 } // namespace extensions | 58 } // namespace extensions |
| 59 | 59 |
| 60 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 60 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |