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

Unified Diff: remoting/codec/audio_decoder.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/codec/audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_decoder.h
diff --git a/remoting/codec/audio_decoder.h b/remoting/codec/audio_decoder.h
index f5088bceb5c3a2c9b8b21aca3d7ad3b69d81c89a..46a464cf252c6145f9a6efae582d32dced7f3608 100644
--- a/remoting/codec/audio_decoder.h
+++ b/remoting/codec/audio_decoder.h
@@ -5,7 +5,7 @@
#ifndef REMOTING_CODEC_AUDIO_DECODER_H_
#define REMOTING_CODEC_AUDIO_DECODER_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
namespace remoting {
@@ -17,14 +17,15 @@ class AudioPacket;
class AudioDecoder {
public:
- static scoped_ptr<AudioDecoder> CreateAudioDecoder(
+ static std::unique_ptr<AudioDecoder> CreateAudioDecoder(
const protocol::SessionConfig& config);
virtual ~AudioDecoder() {}
// Returns the decoded packet. If the packet is invalid, then a NULL
// scoped_ptr is returned.
- virtual scoped_ptr<AudioPacket> Decode(scoped_ptr<AudioPacket> packet) = 0;
+ virtual std::unique_ptr<AudioPacket> Decode(
+ std::unique_ptr<AudioPacket> packet) = 0;
};
} // namespace remoting
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/codec/audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698