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

Unified Diff: media/cast/net/cast_transport_config.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/cast_transport.h ('k') | media/cast/net/cast_transport_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/cast_transport_config.h
diff --git a/media/cast/net/cast_transport_config.h b/media/cast/net/cast_transport_config.h
index 0401851d2e27ca7512e99f420dad4cd46067d1fd..7ef9e704b3bbdc2962d70b4dbfa1807123fd25b8 100644
--- a/media/cast/net/cast_transport_config.h
+++ b/media/cast/net/cast_transport_config.h
@@ -8,10 +8,10 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "media/cast/common/rtp_time.h"
#include "media/cast/net/cast_transport_defines.h"
@@ -123,8 +123,9 @@ struct EncodedFrame {
std::string data;
};
-typedef base::Callback<void(scoped_ptr<Packet> packet)> PacketReceiverCallback;
-typedef base::Callback<bool(scoped_ptr<Packet> packet)>
+typedef base::Callback<void(std::unique_ptr<Packet> packet)>
+ PacketReceiverCallback;
+typedef base::Callback<bool(std::unique_ptr<Packet> packet)>
PacketReceiverCallbackWithStatus;
class PacketTransport {
« no previous file with comments | « media/cast/net/cast_transport.h ('k') | media/cast/net/cast_transport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698