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

Side by Side Diff: chromecast/media/cma/backend/alsa/audio_decoder_alsa.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_ALSA_AUDIO_DECODER_ALSA_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.h" 10 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 MediaPipelineBackendAlsa* const backend_; 68 MediaPipelineBackendAlsa* const backend_;
69 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 69 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
70 MediaPipelineBackend::Decoder::Delegate* delegate_; 70 MediaPipelineBackend::Decoder::Delegate* delegate_;
71 71
72 Statistics stats_; 72 Statistics stats_;
73 bool is_eos_; 73 bool is_eos_;
74 bool error_; 74 bool error_;
75 75
76 AudioConfig config_; 76 AudioConfig config_;
77 scoped_ptr<CastAudioDecoder> decoder_; 77 std::unique_ptr<CastAudioDecoder> decoder_;
78 78
79 int64_t current_pts_; 79 int64_t current_pts_;
80 int64_t last_buffer_pts_; 80 int64_t last_buffer_pts_;
81 81
82 scoped_ptr<StreamMixerAlsaInput> mixer_input_; 82 std::unique_ptr<StreamMixerAlsaInput> mixer_input_;
83 RenderingDelay last_known_delay_; 83 RenderingDelay last_known_delay_;
84 float volume_multiplier_; 84 float volume_multiplier_;
85 85
86 base::WeakPtrFactory<AudioDecoderAlsa> weak_factory_; 86 base::WeakPtrFactory<AudioDecoderAlsa> weak_factory_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(AudioDecoderAlsa); 88 DISALLOW_COPY_AND_ASSIGN(AudioDecoderAlsa);
89 }; 89 };
90 90
91 } // namespace media 91 } // namespace media
92 } // namespace chromecast 92 } // namespace chromecast
93 93
94 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ 94 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_
OLDNEW
« no previous file with comments | « chromecast/media/cdm/browser_cdm_cast.cc ('k') | chromecast/media/cma/backend/alsa/cast_media_shlib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698