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

Unified Diff: media/cast/cast_sender.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/cast_receiver.h ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_sender.h
diff --git a/media/cast/cast_sender.h b/media/cast/cast_sender.h
index a2c506927d0fd9a1cf5b739e01364cb5c9e69263..9e02c350ec81a6599b5ea91ccbd966a3c4cbfb50 100644
--- a/media/cast/cast_sender.h
+++ b/media/cast/cast_sender.h
@@ -10,9 +10,10 @@
#ifndef MEDIA_CAST_CAST_SENDER_H_
#define MEDIA_CAST_CAST_SENDER_H_
+#include <memory>
+
#include "base/callback.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "media/base/audio_bus.h"
@@ -68,7 +69,7 @@ class AudioFrameInput : public base::RefCountedThreadSafe<AudioFrameInput> {
public:
// Insert audio frames into Cast sender. Frames will be encoded, packetized
// and sent to the network.
- virtual void InsertAudio(scoped_ptr<AudioBus> audio_bus,
+ virtual void InsertAudio(std::unique_ptr<AudioBus> audio_bus,
const base::TimeTicks& recorded_time) = 0;
protected:
@@ -88,7 +89,7 @@ using StatusChangeCallback = base::Callback<void(OperationalStatus)>;
// Provided CastTransport will also be called on the main thread.
class CastSender {
public:
- static scoped_ptr<CastSender> Create(
+ static std::unique_ptr<CastSender> Create(
scoped_refptr<CastEnvironment> cast_environment,
CastTransport* const transport_sender);
« no previous file with comments | « media/cast/cast_receiver.h ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698