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

Side by Side Diff: chrome/browser/speech/speech_input_extension_manager.h

Issue 11316330: Revert 170701 since the WebKit change has now been rolled in again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
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 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const content::NotificationSource& source, 118 const content::NotificationSource& source,
119 const content::NotificationDetails& details) OVERRIDE; 119 const content::NotificationDetails& details) OVERRIDE;
120 120
121 // Methods from SpeechRecognitionEventListener. 121 // Methods from SpeechRecognitionEventListener.
122 virtual void OnRecognitionStart(int session_id) OVERRIDE; 122 virtual void OnRecognitionStart(int session_id) OVERRIDE;
123 virtual void OnAudioStart(int session_id) OVERRIDE; 123 virtual void OnAudioStart(int session_id) OVERRIDE;
124 virtual void OnEnvironmentEstimationComplete(int session_id) OVERRIDE; 124 virtual void OnEnvironmentEstimationComplete(int session_id) OVERRIDE;
125 virtual void OnSoundStart(int session_id) OVERRIDE; 125 virtual void OnSoundStart(int session_id) OVERRIDE;
126 virtual void OnSoundEnd(int session_id) OVERRIDE; 126 virtual void OnSoundEnd(int session_id) OVERRIDE;
127 virtual void OnAudioEnd(int session_id) OVERRIDE; 127 virtual void OnAudioEnd(int session_id) OVERRIDE;
128 virtual void OnRecognitionResult( 128 virtual void OnRecognitionResults(
129 int session_id, const content::SpeechRecognitionResult& result) OVERRIDE; 129 int session_id, const content::SpeechRecognitionResults& result) OVERRIDE;
130 virtual void OnRecognitionError( 130 virtual void OnRecognitionError(
131 int session_id, const content::SpeechRecognitionError& error) OVERRIDE; 131 int session_id, const content::SpeechRecognitionError& error) OVERRIDE;
132 virtual void OnAudioLevelsChange(int session_id, float volume, 132 virtual void OnAudioLevelsChange(int session_id, float volume,
133 float noise_volume) OVERRIDE; 133 float noise_volume) OVERRIDE;
134 virtual void OnRecognitionEnd(int session_id) OVERRIDE; 134 virtual void OnRecognitionEnd(int session_id) OVERRIDE;
135 135
136 // Methods for API testing. 136 // Methods for API testing.
137 void SetSpeechInputExtensionInterface( 137 void SetSpeechInputExtensionInterface(
138 SpeechInputExtensionInterface* speech_interface); 138 SpeechInputExtensionInterface* speech_interface);
139 139
(...skipping 19 matching lines...) Expand all
159 void StartOnIOThread( 159 void StartOnIOThread(
160 scoped_refptr<net::URLRequestContextGetter> context_getter, 160 scoped_refptr<net::URLRequestContextGetter> context_getter,
161 const std::string& extension_name, 161 const std::string& extension_name,
162 const std::string& language, 162 const std::string& language,
163 const std::string& grammar, 163 const std::string& grammar,
164 bool filter_profanities, 164 bool filter_profanities,
165 int render_process_id); 165 int render_process_id);
166 void ForceStopOnIOThread(); 166 void ForceStopOnIOThread();
167 void IsRecordingOnIOThread(const IsRecordingCallback& callback); 167 void IsRecordingOnIOThread(const IsRecordingCallback& callback);
168 168
169 void SetRecognitionResultOnUIThread( 169 void SetRecognitionResultsOnUIThread(
170 const content::SpeechRecognitionResult& result, 170 const content::SpeechRecognitionResults& result,
171 const std::string& extension_id); 171 const std::string& extension_id);
172 void DidStartReceivingAudioOnUIThread(); 172 void DidStartReceivingAudioOnUIThread();
173 void StopSucceededOnUIThread(); 173 void StopSucceededOnUIThread();
174 void IsRecordingOnUIThread(const IsRecordingCallback& callback, bool result); 174 void IsRecordingOnUIThread(const IsRecordingCallback& callback, bool result);
175 175
176 void DispatchError(const std::string& error, bool dispatch_event); 176 void DispatchError(const std::string& error, bool dispatch_event);
177 void DispatchEventToExtension(const std::string& extension_id, 177 void DispatchEventToExtension(const std::string& extension_id,
178 const std::string& event, 178 const std::string& event,
179 scoped_ptr<base::ListValue> event_args); 179 scoped_ptr<base::ListValue> event_args);
180 void ExtensionUnloaded(const std::string& extension_id); 180 void ExtensionUnloaded(const std::string& extension_id);
(...skipping 25 matching lines...) Expand all
206 // Used in the UI thread. 206 // Used in the UI thread.
207 scoped_ptr<content::NotificationRegistrar> registrar_; 207 scoped_ptr<content::NotificationRegistrar> registrar_;
208 SpeechInputExtensionInterface* speech_interface_; 208 SpeechInputExtensionInterface* speech_interface_;
209 209
210 // Used in the IO thread. 210 // Used in the IO thread.
211 bool is_recognition_in_progress_; 211 bool is_recognition_in_progress_;
212 int speech_recognition_session_id_; 212 int speech_recognition_session_id_;
213 }; 213 };
214 214
215 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ 215 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_extension_apitest.cc ('k') | chrome/browser/speech/speech_input_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698