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

Unified Diff: media/base/android/media_source_player.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/android/media_player_bridge.h ('k') | media/base/android/media_source_player.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_source_player.h
diff --git a/media/base/android/media_source_player.h b/media/base/android/media_source_player.h
index d6b26d72499655bfdc2617a67ca124c530df06ec..e2161f4d9363f7455895b02a8d333a053b4b03b1 100644
--- a/media/base/android/media_source_player.h
+++ b/media/base/android/media_source_player.h
@@ -6,7 +6,9 @@
#define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
#include <jni.h>
+
#include <map>
+#include <memory>
#include <string>
#include <vector>
@@ -14,7 +16,6 @@
#include "base/callback.h"
#include "base/cancelable_callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
#include "base/time/default_tick_clock.h"
@@ -44,7 +45,7 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid,
int player_id,
MediaPlayerManager* manager,
const OnDecoderResourcesReleasedCB& on_decoder_resources_released_cb,
- scoped_ptr<DemuxerAndroid> demuxer,
+ std::unique_ptr<DemuxerAndroid> demuxer,
const GURL& frame_url,
int media_session_id);
~MediaSourcePlayer() override;
@@ -193,7 +194,7 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid,
// creating the decoders identified by |audio| and |video|.
void RetryDecoderCreation(bool audio, bool video);
- scoped_ptr<DemuxerAndroid> demuxer_;
+ std::unique_ptr<DemuxerAndroid> demuxer_;
// Pending event that the player needs to do.
unsigned pending_event_;
@@ -232,8 +233,8 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid,
base::TimeDelta pending_seek_time_;
// Decoder jobs.
- scoped_ptr<AudioDecoderJob, MediaDecoderJob::Deleter> audio_decoder_job_;
- scoped_ptr<VideoDecoderJob, MediaDecoderJob::Deleter> video_decoder_job_;
+ std::unique_ptr<AudioDecoderJob, MediaDecoderJob::Deleter> audio_decoder_job_;
+ std::unique_ptr<VideoDecoderJob, MediaDecoderJob::Deleter> video_decoder_job_;
// Track the most recent preroll target. Decoder re-creation needs this to
// resume any in-progress preroll.
@@ -274,7 +275,7 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid,
// Gathers and reports playback quality statistics to UMA.
// Use pointer to enable replacement of this object for tests.
- scoped_ptr<MediaStatistics> media_stat_;
+ std::unique_ptr<MediaStatistics> media_stat_;
// Weak pointer passed to media decoder jobs for callbacks.
base::WeakPtr<MediaSourcePlayer> weak_this_;
« no previous file with comments | « media/base/android/media_player_bridge.h ('k') | media/base/android/media_source_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698