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

Side by Side Diff: chromecast/media/cma/backend/media_pipeline_backend_default.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_DEFAULT_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_DEFAULT_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_DEFAULT_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_DEFAULT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/time/time.h" 13 #include "base/time/time.h"
13 #include "chromecast/public/media/media_pipeline_backend.h" 14 #include "chromecast/public/media/media_pipeline_backend.h"
14 15
15 namespace chromecast { 16 namespace chromecast {
16 namespace media { 17 namespace media {
17 class AudioDecoderDefault; 18 class AudioDecoderDefault;
18 class VideoDecoderDefault; 19 class VideoDecoderDefault;
19 20
20 // Factory that instantiates default (stub) media pipeline device elements. 21 // Factory that instantiates default (stub) media pipeline device elements.
21 class MediaPipelineBackendDefault : public MediaPipelineBackend { 22 class MediaPipelineBackendDefault : public MediaPipelineBackend {
(...skipping 19 matching lines...) Expand all
41 bool Resume() override; 42 bool Resume() override;
42 int64_t GetCurrentPts() override; 43 int64_t GetCurrentPts() override;
43 bool SetPlaybackRate(float rate) override; 44 bool SetPlaybackRate(float rate) override;
44 45
45 private: 46 private:
46 int64_t start_pts_; 47 int64_t start_pts_;
47 base::TimeTicks start_clock_; 48 base::TimeTicks start_clock_;
48 bool running_; 49 bool running_;
49 float rate_; 50 float rate_;
50 51
51 scoped_ptr<AudioDecoderDefault> audio_decoder_; 52 std::unique_ptr<AudioDecoderDefault> audio_decoder_;
52 scoped_ptr<VideoDecoderDefault> video_decoder_; 53 std::unique_ptr<VideoDecoderDefault> video_decoder_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendDefault); 55 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendDefault);
55 }; 56 };
56 57
57 } // namespace media 58 } // namespace media
58 } // namespace chromecast 59 } // namespace chromecast
59 60
60 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_DEFAULT_H_ 61 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_DEFAULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698