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

Unified Diff: content/browser/speech/speech_recognition_engine.h

Issue 11347004: content/browser: Move speech code into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognition_engine.h
diff --git a/content/browser/speech/speech_recognition_engine.h b/content/browser/speech/speech_recognition_engine.h
index 0e90ec8593111cfacefa7ad7ba243d2fff3089aa..abd94e956c3d4947a95cfabcdf08d43fe796ab96 100644
--- a/content/browser/speech/speech_recognition_engine.h
+++ b/content/browser/speech/speech_recognition_engine.h
@@ -12,13 +12,10 @@
#include "content/public/common/speech_recognition_grammar.h"
namespace content {
-struct SpeechRecognitionResult;
-struct SpeechRecognitionError;
-}
-
-namespace speech {
class AudioChunk;
+struct SpeechRecognitionResult;
+struct SpeechRecognitionError;
// This interface models the basic contract that a speech recognition engine,
// either working locally or relying on a remote web-service, must obey.
@@ -39,9 +36,9 @@ class SpeechRecognitionEngine {
// (e.g., in the case of continuous speech recognition engine
// implementations).
virtual void OnSpeechRecognitionEngineResult(
- const content::SpeechRecognitionResult& result) = 0;
+ const SpeechRecognitionResult& result) = 0;
virtual void OnSpeechRecognitionEngineError(
- const content::SpeechRecognitionError& error) = 0;
+ const SpeechRecognitionError& error) = 0;
protected:
virtual ~Delegate() {}
@@ -53,7 +50,7 @@ class SpeechRecognitionEngine {
~Config();
std::string language;
- content::SpeechRecognitionGrammarArray grammars;
+ SpeechRecognitionGrammarArray grammars;
bool filter_profanities;
bool continuous;
bool interim_results;
@@ -110,6 +107,6 @@ class SpeechRecognitionEngine {
typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate;
typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig;
-} // namespace speech
+} // namespace content
#endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_

Powered by Google App Engine
This is Rietveld 408576698