summaryrefslogtreecommitdiffstats
path: root/content/browser/speech/speech_recognizer_impl.h
diff options
context:
space:
mode:
authorprimiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 00:32:09 +0000
committerprimiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 00:32:09 +0000
commit55b67c2a6a1ea4846656de82fe2acd1e3d59048a (patch)
tree5e104103b85175ed53679d43202d6b4f7f55ce41 /content/browser/speech/speech_recognizer_impl.h
parent3391a0773921b0539699ad4eab0a409e10194f84 (diff)
downloadchromium_src-55b67c2a6a1ea4846656de82fe2acd1e3d59048a.zip
chromium_src-55b67c2a6a1ea4846656de82fe2acd1e3d59048a.tar.gz
chromium_src-55b67c2a6a1ea4846656de82fe2acd1e3d59048a.tar.bz2
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
Diffstat (limited to 'content/browser/speech/speech_recognizer_impl.h')
-rw-r--r--content/browser/speech/speech_recognizer_impl.h5
1 files changed, 3 insertions, 2 deletions
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<AudioChunk> raw_audio);
// Helper method which closes the audio controller and frees it asynchronously
// without blocking the IO thread.