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

Unified Diff: remoting/host/audio_capturer.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/codec/video_encoder_vpx_unittest.cc ('k') | remoting/host/audio_capturer_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer.h
diff --git a/remoting/host/audio_capturer.h b/remoting/host/audio_capturer.h
index 97ea46b151441c398e0ce964a889dbbdfe29158e..c79949903ca892247fae2bcf84b459566dcf366d 100644
--- a/remoting/host/audio_capturer.h
+++ b/remoting/host/audio_capturer.h
@@ -5,8 +5,9 @@
#ifndef REMOTING_HOST_AUDIO_CAPTURER_H_
#define REMOTING_HOST_AUDIO_CAPTURER_H_
+#include <memory>
+
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
namespace remoting {
@@ -14,7 +15,7 @@ class AudioPacket;
class AudioCapturer {
public:
- typedef base::Callback<void(scoped_ptr<AudioPacket> packet)>
+ typedef base::Callback<void(std::unique_ptr<AudioPacket> packet)>
PacketCapturedCallback;
virtual ~AudioCapturer() {}
@@ -22,7 +23,7 @@ class AudioCapturer {
// Returns true if audio capturing is supported on this platform. If this
// returns true, then Create() must not return nullptr.
static bool IsSupported();
- static scoped_ptr<AudioCapturer> Create();
+ static std::unique_ptr<AudioCapturer> Create();
// Capturers should sample at a 44.1 or 48 kHz sampling rate, in uncompressed
// PCM stereo format. Capturers may choose the number of frames per packet.
« no previous file with comments | « remoting/codec/video_encoder_vpx_unittest.cc ('k') | remoting/host/audio_capturer_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698