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

Unified Diff: media/base/renderer_factory.h

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android 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/base/pipeline_impl_unittest.cc ('k') | media/base/seekable_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer_factory.h
diff --git a/media/base/renderer_factory.h b/media/base/renderer_factory.h
index 65c5cbee6936c6d44509198e1361c7a3c32221c0..f0a375fc35f478c0412583eb95f3ab38f7ea3c75 100644
--- a/media/base/renderer_factory.h
+++ b/media/base/renderer_factory.h
@@ -5,9 +5,10 @@
#ifndef MEDIA_BASE_RENDERER_FACTORY_H_
#define MEDIA_BASE_RENDERER_FACTORY_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
#include "media/base/renderer.h"
#include "media/base/surface_manager.h"
@@ -33,7 +34,7 @@ class MEDIA_EXPORT RendererFactory {
// GetMediaTime() could be called on any thread.
// The created Renderer can use |audio_renderer_sink| to render audio and
// |video_renderer_sink| to render video.
- virtual scoped_ptr<Renderer> CreateRenderer(
+ virtual std::unique_ptr<Renderer> CreateRenderer(
const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
const scoped_refptr<base::TaskRunner>& worker_task_runner,
AudioRendererSink* audio_renderer_sink,
« no previous file with comments | « media/base/pipeline_impl_unittest.cc ('k') | media/base/seekable_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698