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

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

Issue 7969028: Reland r102332 - export more symbols needed for the component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actual fix for compile failure Created 9 years, 3 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
« no previous file with comments | « content/browser/speech/speech_recognition_request.h ('k') | content/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognizer.h
diff --git a/content/browser/speech/speech_recognizer.h b/content/browser/speech/speech_recognizer.h
index f109e92dcbeadc93a8802996f419f6532ce9cff7..e350e65f21c2e0353e7300d976030510f577473c 100644
--- a/content/browser/speech/speech_recognizer.h
+++ b/content/browser/speech/speech_recognizer.h
@@ -21,7 +21,7 @@ namespace speech_input {
// Records audio, sends recorded audio to server and translates server response
// to recognition result.
-class SpeechRecognizer
+class CONTENT_EXPORT SpeechRecognizer
: public base::RefCountedThreadSafe<SpeechRecognizer>,
public media::AudioInputController::EventHandler,
public SpeechRecognitionRequestDelegate {
@@ -35,7 +35,7 @@ class SpeechRecognizer
};
// Implemented by the caller to receive recognition events.
- class Delegate {
+ class CONTENT_EXPORT Delegate {
public:
virtual void SetRecognitionResult(
int caller_id,
@@ -79,27 +79,27 @@ class SpeechRecognizer
virtual ~Delegate() {}
};
- CONTENT_EXPORT SpeechRecognizer(Delegate* delegate,
- int caller_id,
- const std::string& language,
- const std::string& grammar,
- bool censor_results,
- const std::string& hardware_info,
- const std::string& origin_url);
+ SpeechRecognizer(Delegate* delegate,
+ int caller_id,
+ const std::string& language,
+ const std::string& grammar,
+ bool censor_results,
+ const std::string& hardware_info,
+ const std::string& origin_url);
virtual ~SpeechRecognizer();
// Starts audio recording and does recognition after recording ends. The same
// SpeechRecognizer instance can be used multiple times for speech recognition
// though each recognition request can be made only after the previous one
// completes (i.e. after receiving Delegate::DidCompleteRecognition).
- CONTENT_EXPORT bool StartRecording();
+ bool StartRecording();
// Stops recording audio and starts recognition.
- CONTENT_EXPORT void StopRecording();
+ void StopRecording();
// Stops recording audio and cancels recognition. Any audio recorded so far
// gets discarded.
- CONTENT_EXPORT void CancelRecognition();
+ void CancelRecognition();
// AudioInputController::EventHandler methods.
virtual void OnCreated(media::AudioInputController* controller) { }
« no previous file with comments | « content/browser/speech/speech_recognition_request.h ('k') | content/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698