summaryrefslogtreecommitdiffstats
path: root/content/renderer/speech_recognition_dispatcher.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:31:26 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:31:26 +0000
commite9ff79ccdf72412480abf22860924c3eedcc61f0 (patch)
treec85c010a58d15374fc7fc2d31f9c8f33e3f74ae3 /content/renderer/speech_recognition_dispatcher.h
parent5f23a1cf7f266005763a9c40ec4a422f7dc9b3bb (diff)
downloadchromium_src-e9ff79ccdf72412480abf22860924c3eedcc61f0.zip
chromium_src-e9ff79ccdf72412480abf22860924c3eedcc61f0.tar.gz
chromium_src-e9ff79ccdf72412480abf22860924c3eedcc61f0.tar.bz2
Move a bunch of code in content\renderer to the content namespace.
Review URL: https://codereview.chromium.org/11232014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/speech_recognition_dispatcher.h')
-rw-r--r--content/renderer/speech_recognition_dispatcher.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/content/renderer/speech_recognition_dispatcher.h b/content/renderer/speech_recognition_dispatcher.h
index 9725d50..6218b3f 100644
--- a/content/renderer/speech_recognition_dispatcher.h
+++ b/content/renderer/speech_recognition_dispatcher.h
@@ -13,17 +13,15 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizer.h"
-class RenderViewImpl;
-
namespace content {
+class RenderViewImpl;
struct SpeechRecognitionError;
struct SpeechRecognitionResult;
-}
// SpeechRecognitionDispatcher is a delegate for methods used by WebKit for
// scripted JS speech APIs. It's the complement of
// SpeechRecognitionDispatcherHost (owned by RenderViewHost).
-class SpeechRecognitionDispatcher : public content::RenderViewObserver,
+class SpeechRecognitionDispatcher : public RenderViewObserver,
public WebKit::WebSpeechRecognizer {
public:
explicit SpeechRecognitionDispatcher(RenderViewImpl* render_view);
@@ -47,11 +45,9 @@ class SpeechRecognitionDispatcher : public content::RenderViewObserver,
void OnSoundStarted(int request_id);
void OnSoundEnded(int request_id);
void OnAudioEnded(int request_id);
- void OnErrorOccurred(int request_id,
- const content::SpeechRecognitionError& error);
+ void OnErrorOccurred(int request_id, const SpeechRecognitionError& error);
void OnRecognitionEnded(int request_id);
- void OnResultRetrieved(int request_id,
- const content::SpeechRecognitionResult& result);
+ void OnResultRetrieved(int request_id, const SpeechRecognitionResult& result);
int GetOrCreateIDForHandle(const WebKit::WebSpeechRecognitionHandle& handle);
bool HandleExists(const WebKit::WebSpeechRecognitionHandle& handle);
@@ -67,4 +63,6 @@ class SpeechRecognitionDispatcher : public content::RenderViewObserver,
DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher);
};
+} // namespace content
+
#endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_