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

Unified Diff: content/browser/speech/audio_encoder.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: 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/audio_encoder.h
diff --git a/content/browser/speech/audio_encoder.h b/content/browser/speech/audio_encoder.h
index 65ceb9723fa3b9777747515685eb4120a8fd071a..43bfa1fedc102ac0cc150b9e9aba9c0e9d6d49bd 100644
--- a/content/browser/speech/audio_encoder.h
+++ b/content/browser/speech/audio_encoder.h
@@ -9,7 +9,7 @@
#include <string>
#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ref_counted.h"
#include "content/browser/speech/audio_buffer.h"
namespace speech {
@@ -38,7 +38,7 @@ class AudioEncoder {
virtual void Flush() = 0;
// Merges, retrieves and clears all the accumulated encoded audio chunks.
- scoped_ptr<AudioChunk> GetEncodedDataAndClear();
+ scoped_refptr<AudioChunk> GetEncodedDataAndClear();
const std::string& mime_type() { return mime_type_; }
int bits_per_sample() { return bits_per_sample_; }

Powered by Google App Engine
This is Rietveld 408576698