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

Side by Side Diff: media/filters/opus_audio_decoder.h

Issue 1904213003: Convert //media/filters 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
6 #define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ 6 #define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void CloseDecoder(); 51 void CloseDecoder();
52 void ResetTimestampState(); 52 void ResetTimestampState();
53 bool Decode(const scoped_refptr<DecoderBuffer>& input, 53 bool Decode(const scoped_refptr<DecoderBuffer>& input,
54 scoped_refptr<AudioBuffer>* output_buffer); 54 scoped_refptr<AudioBuffer>* output_buffer);
55 55
56 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 56 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
57 57
58 AudioDecoderConfig config_; 58 AudioDecoderConfig config_;
59 OutputCB output_cb_; 59 OutputCB output_cb_;
60 OpusMSDecoder* opus_decoder_; 60 OpusMSDecoder* opus_decoder_;
61 scoped_ptr<AudioDiscardHelper> discard_helper_; 61 std::unique_ptr<AudioDiscardHelper> discard_helper_;
62 62
63 DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder); 63 DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder);
64 }; 64 };
65 65
66 } // namespace media 66 } // namespace media
67 67
68 #endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ 68 #endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698