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

Unified Diff: content/browser/speech/speech_recognizer_impl.h

Issue 9861019: Speech refactoring: Turned AudioChunk into a refcounted class (CL1.4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed according to Hans review. Created 8 years, 9 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: 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 e4b875686be71b12b305561f6587e687d721a51f..8e9adcc7ba6c32ce2873f1954d7a1f3b0c29c91e 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.
« no previous file with comments | « content/browser/speech/google_one_shot_remote_engine_unittest.cc ('k') | content/browser/speech/speech_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698