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); |