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

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

Issue 10069054: RefCounted types should not have public destructors, content/ remaining bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to Trunk Created 8 years, 7 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/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
« no previous file with comments | « content/public/browser/resource_dispatcher_host_login_delegate.h ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698