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

Unified Diff: media/cast/receiver/audio_decoder.h

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « media/cast/net/udp_transport_unittest.cc ('k') | media/cast/receiver/audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/audio_decoder.h
diff --git a/media/cast/receiver/audio_decoder.h b/media/cast/receiver/audio_decoder.h
index c452bf4971e91acd4d0791c6c0d46553584892a9..0ba78212432bd933c7d20ff47e03ae559aed906a 100644
--- a/media/cast/receiver/audio_decoder.h
+++ b/media/cast/receiver/audio_decoder.h
@@ -24,8 +24,9 @@ class AudioDecoder {
// be false if the decoder has detected a frame skip since the last decode
// operation; and the client should take steps to smooth audio discontinuities
// in this case.
- typedef base::Callback<void(scoped_ptr<AudioBus> audio_bus,
- bool is_continuous)> DecodeFrameCallback;
+ typedef base::Callback<void(std::unique_ptr<AudioBus> audio_bus,
+ bool is_continuous)>
+ DecodeFrameCallback;
AudioDecoder(const scoped_refptr<CastEnvironment>& cast_environment,
int channels,
@@ -45,7 +46,7 @@ class AudioDecoder {
// monotonically-increasing by 1 for each successive call to this method.
// When it is not, the decoder will assume one or more frames have been
// dropped (e.g., due to packet loss), and will perform recovery actions.
- void DecodeFrame(scoped_ptr<EncodedFrame> encoded_frame,
+ void DecodeFrame(std::unique_ptr<EncodedFrame> encoded_frame,
const DecodeFrameCallback& callback);
private:
« no previous file with comments | « media/cast/net/udp_transport_unittest.cc ('k') | media/cast/receiver/audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698