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

Unified Diff: media/base/pipeline.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: . 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: media/base/pipeline.h
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index db326c2928353f2aa9d6080ad650e4ecd56f22fb..48ce0a3b6fc9168618623dceca2badd81cc80230 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_PIPELINE_H_
#define MEDIA_BASE_PIPELINE_H_
+#include <memory>
+
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "media/base/buffering_state.h"
@@ -61,7 +63,7 @@ class MEDIA_EXPORT Pipeline {
// to decrypt the stream is not available.
// It is an error to call this method after the pipeline has already started.
virtual 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,
@@ -103,7 +105,7 @@ class MEDIA_EXPORT Pipeline {
//
// It is an error to call this method if the pipeline has not finished
// suspending.
- virtual void Resume(scoped_ptr<Renderer> renderer,
+ virtual void Resume(std::unique_ptr<Renderer> renderer,
base::TimeDelta timestamp,
const PipelineStatusCB& seek_cb) = 0;

Powered by Google App Engine
This is Rietveld 408576698