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

Unified Diff: media/base/pipeline_impl.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.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_impl.h
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
index 7a6da3a7b5115974ad31e0ddf7066c0b53b1a4b4..da4f347579c6496e5351893c4eac25c7d4308114 100644
--- a/media/base/pipeline_impl.h
+++ b/media/base/pipeline_impl.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_PIPELINE_IMPL_H_
#define MEDIA_BASE_PIPELINE_IMPL_H_
+#include <memory>
+
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -84,7 +86,7 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
// Pipeline implementation.
void Start(Demuxer* demuxer,
- scoped_ptr<Renderer> renderer,
+ std::unique_ptr<Renderer> renderer,
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb,
const PipelineStatusCB& seek_cb,
@@ -99,7 +101,7 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
double GetPlaybackRate() const override;
void SetPlaybackRate(double playback_rate) override;
void Suspend(const PipelineStatusCB& suspend_cb) override;
- void Resume(scoped_ptr<Renderer> renderer,
+ void Resume(std::unique_ptr<Renderer> renderer,
base::TimeDelta timestamp,
const PipelineStatusCB& seek_cb) override;
float GetVolume() const override;
@@ -165,7 +167,7 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
void SuspendTask(const PipelineStatusCB& suspend_cb);
// Resumes the pipeline with a new renderer, and initializes it with a seek.
- void ResumeTask(scoped_ptr<Renderer> renderer,
+ void ResumeTask(std::unique_ptr<Renderer> renderer,
base::TimeDelta timestamp,
const PipelineStatusCB& seek_sb);
@@ -200,7 +202,7 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
void OnTextRendererEnded();
void RunEndedCallbackIfNeeded();
- scoped_ptr<TextRenderer> CreateTextRenderer();
+ std::unique_ptr<TextRenderer> CreateTextRenderer();
// Carries out adding a new text stream to the text renderer.
void AddTextStreamTask(DemuxerStream* text_stream,
@@ -312,12 +314,12 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
// Holds the initialized renderers. Used for setting the volume,
// playback rate, and determining when playback has finished.
- scoped_ptr<Renderer> renderer_;
- scoped_ptr<TextRenderer> text_renderer_;
+ std::unique_ptr<Renderer> renderer_;
+ std::unique_ptr<TextRenderer> text_renderer_;
PipelineStatistics statistics_;
- scoped_ptr<SerialRunner> pending_callbacks_;
+ std::unique_ptr<SerialRunner> pending_callbacks_;
// The CdmContext to be used to decrypt (and decode) encrypted stream in this
// pipeline. It is set when SetCdm() succeeds on the renderer (or when
« no previous file with comments | « media/base/pipeline.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698