| Index: content/public/browser/speech_recognizer.h
|
| diff --git a/content/public/browser/speech_recognizer.h b/content/public/browser/speech_recognizer.h
|
| index a9cec7056a311d4ff3c46d3847bdc535d2247635..455395289d43c5766aa18bcfd7913ab016cdc938 100644
|
| --- a/content/public/browser/speech_recognizer.h
|
| +++ b/content/public/browser/speech_recognizer.h
|
| @@ -25,7 +25,6 @@ class SpeechRecognitionEventListener;
|
| // extensions.
|
| class SpeechRecognizer : public base::RefCountedThreadSafe<SpeechRecognizer> {
|
| public:
|
| -
|
| CONTENT_EXPORT static SpeechRecognizer* Create(
|
| SpeechRecognitionEventListener* event_listener,
|
| int session_id,
|
| @@ -36,8 +35,6 @@ class SpeechRecognizer : public base::RefCountedThreadSafe<SpeechRecognizer> {
|
| const std::string& hardware_info,
|
| const std::string& origin_url);
|
|
|
| - virtual ~SpeechRecognizer() {}
|
| -
|
| // Starts audio recording and the recognition process. The same
|
| // SpeechRecognizer instance can be used multiple times for speech recognition
|
| // though each recognition request can be made only after the previous one
|
| @@ -56,8 +53,12 @@ class SpeechRecognizer : public base::RefCountedThreadSafe<SpeechRecognizer> {
|
| // or waiting for a result.
|
| virtual bool IsActive() const = 0;
|
|
|
| - // Checks wether the recognizer is capturing audio.
|
| + // Checks whether the recognizer is capturing audio.
|
| virtual bool IsCapturingAudio() const = 0;
|
| +
|
| + protected:
|
| + friend class base::RefCountedThreadSafe<SpeechRecognizer>;
|
| + virtual ~SpeechRecognizer() {}
|
| };
|
|
|
| } // namespace content
|
|
|