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

Unified Diff: chrome/browser/speech/speech_recognition_bubble_controller.h

Issue 10068036: RefCounted types should not have public destructors, chrome/browser/ part 5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix Created 8 years, 8 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: chrome/browser/speech/speech_recognition_bubble_controller.h
diff --git a/chrome/browser/speech/speech_recognition_bubble_controller.h b/chrome/browser/speech/speech_recognition_bubble_controller.h
index 744cb646c68788a3e16da33413eb054d74a12e9f..1f59d08c3f10a87701ca9543f860ad12cb5adc62 100644
--- a/chrome/browser/speech/speech_recognition_bubble_controller.h
+++ b/chrome/browser/speech/speech_recognition_bubble_controller.h
@@ -49,7 +49,6 @@ class SpeechRecognitionBubbleController
};
explicit SpeechRecognitionBubbleController(Delegate* delegate);
- virtual ~SpeechRecognitionBubbleController();
// Creates a new speech recognition UI bubble. One of the SetXxxx methods
// below need to be called to specify what to display.
@@ -90,6 +89,8 @@ class SpeechRecognitionBubbleController
const content::NotificationDetails& details) OVERRIDE;
private:
+ friend class base::RefCountedThreadSafe<SpeechRecognitionBubbleController>;
+
// The various calls received by this object and handled in the UI thread.
enum RequestType {
REQUEST_SET_WARM_UP_MODE,
@@ -105,6 +106,8 @@ class SpeechRecognitionBubbleController
BUBBLE_REMOVED
};
+ virtual ~SpeechRecognitionBubbleController();
+
void InvokeDelegateButtonClicked(int session_id,
SpeechRecognitionBubble::Button button);
void InvokeDelegateFocusChanged(int session_id);
« no previous file with comments | « chrome/browser/speech/speech_input_extension_api.cc ('k') | chrome/browser/speech/speech_recognition_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698