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

Unified Diff: chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h

Issue 1875623002: Convert //chromecast 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
Index: chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h
diff --git a/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h b/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h
index ca4216f0a2e53bcaf0782fe97f53a2df344a3d84..c1d59384c9fb669cf29791d24fb6f9e18b11e6c3 100644
--- a/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h
+++ b/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h
@@ -5,9 +5,10 @@
#ifndef CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_
#define CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_
+#include <memory>
+
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "chromecast/media/cma/base/coded_frame_provider.h"
@@ -26,7 +27,7 @@ class CodedFrameProviderHost : public CodedFrameProvider {
// the caller must make sure the shared memory segment is valid
// during the whole lifetime of this object.
explicit CodedFrameProviderHost(
- scoped_ptr<MediaMessageFifo> media_message_fifo);
+ std::unique_ptr<MediaMessageFifo> media_message_fifo);
~CodedFrameProviderHost() override;
// CodedFrameProvider implementation.
@@ -43,7 +44,7 @@ class CodedFrameProviderHost : public CodedFrameProvider {
base::ThreadChecker thread_checker_;
// Fifo holding the frames.
- scoped_ptr<MediaMessageFifo> fifo_;
+ std::unique_ptr<MediaMessageFifo> fifo_;
ReadCB read_cb_;

Powered by Google App Engine
This is Rietveld 408576698