From 55b67c2a6a1ea4846656de82fe2acd1e3d59048a Mon Sep 17 00:00:00 2001 From: "primiano@chromium.org" Date: Wed, 28 Mar 2012 00:32:09 +0000 Subject: Speech refactoring: Turned AudioChunk into a refcounted class (CL1.4) BUG=116954 TEST=Run content_unittests. Review URL: http://codereview.chromium.org/9861019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129316 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/speech/speech_recognizer_impl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content/browser/speech/speech_recognizer_impl.h') diff --git a/content/browser/speech/speech_recognizer_impl.h b/content/browser/speech/speech_recognizer_impl.h index e4b8756..8e9adcc 100644 --- a/content/browser/speech/speech_recognizer_impl.h +++ b/content/browser/speech/speech_recognizer_impl.h @@ -6,6 +6,7 @@ #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_IMPL_H_ #include "base/basictypes.h" +#include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "content/browser/speech/endpointer/endpointer.h" #include "content/browser/speech/speech_recognition_engine.h" @@ -81,8 +82,8 @@ class CONTENT_EXPORT SpeechRecognizerImpl void HandleOnError(int error_code); // Handles OnError in the IO thread. - // Handles OnData in the IO thread. Takes ownership of |raw_audio|. - void HandleOnData(AudioChunk* raw_audio); + // Handles OnData in the IO thread. + void HandleOnData(scoped_refptr raw_audio); // Helper method which closes the audio controller and frees it asynchronously // without blocking the IO thread. -- cgit v1.1