OLD | NEW |
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 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
12 #include "content/public/common/speech_recognition_error.h" | 11 #include "content/public/common/speech_recognition_error.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 class SpeechRecognitionEventListener; | 15 class SpeechRecognitionEventListener; |
17 struct SpeechRecognitionResult; | 16 struct SpeechRecognitionResult; |
(...skipping 14 matching lines...) Expand all Loading... |
32 base::Callback<void(int session_id, bool is_allowed)> callback) = 0; | 31 base::Callback<void(int session_id, bool is_allowed)> callback) = 0; |
33 | 32 |
34 // Checks whether the delegate is interested (returning a non NULL ptr) or not | 33 // Checks whether the delegate is interested (returning a non NULL ptr) or not |
35 // (returning NULL) in receiving a copy of all sessions events. | 34 // (returning NULL) in receiving a copy of all sessions events. |
36 virtual SpeechRecognitionEventListener* GetEventListener() = 0; | 35 virtual SpeechRecognitionEventListener* GetEventListener() = 0; |
37 }; | 36 }; |
38 | 37 |
39 } // namespace content | 38 } // namespace content |
40 | 39 |
41 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
OLD | NEW |