Index: content/public/browser/speech_recognition_session_config.h |
diff --git a/content/public/browser/speech_recognition_session_config.h b/content/public/browser/speech_recognition_session_config.h |
index dd63582888ba0b1d0b34af4776dee960c85cb766..813fbd1056a3baa3ee8101f70ab4b474f2bd992f 100644 |
--- a/content/public/browser/speech_recognition_session_config.h |
+++ b/content/public/browser/speech_recognition_session_config.h |
@@ -7,6 +7,7 @@ |
#include "base/basictypes.h" |
#include "base/memory/ref_counted.h" |
+#include "base/memory/weak_ptr.h" |
#include "content/common/content_export.h" |
#include "content/public/browser/speech_recognition_session_context.h" |
#include "content/public/common/speech_recognition_grammar.h" |
@@ -31,7 +32,7 @@ struct CONTENT_EXPORT SpeechRecognitionSessionConfig { |
uint32 max_hypotheses; |
SpeechRecognitionSessionContext initial_context; |
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; |
- SpeechRecognitionEventListener* event_listener; |
+ base::WeakPtr<SpeechRecognitionEventListener> event_listener; |
}; |
} // namespace content |