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

Side by Side Diff: media/audio/agc_audio_stream.h

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast + windows build 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_AUDIO_AGC_AUDIO_STREAM_H_ 5 #ifndef MEDIA_AUDIO_AGC_AUDIO_STREAM_H_
6 #define MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ 6 #define MEDIA_AUDIO_AGC_AUDIO_STREAM_H_
7 7
8 #include <memory>
danakj 2016/04/22 22:47:35 unused
dcheng 2016/04/22 23:13:19 Done. I hope this doesn't trigger a chain of fun.
9
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
12 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
13 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
14 #include "media/audio/audio_io.h" 15 #include "media/audio/audio_io.h"
15 16
16 // The template based AgcAudioStream implements platform-independent parts 17 // The template based AgcAudioStream implements platform-independent parts
17 // of the AudioInterface interface. Supported interfaces to pass as 18 // of the AudioInterface interface. Supported interfaces to pass as
18 // AudioInterface are AudioIntputStream and AudioOutputStream. Each platform- 19 // AudioInterface are AudioIntputStream and AudioOutputStream. Each platform-
19 // dependent implementation should derive from this class. 20 // dependent implementation should derive from this class.
20 // 21 //
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 // Protects |normalized_volume_| . 199 // Protects |normalized_volume_| .
199 base::Lock lock_; 200 base::Lock lock_;
200 201
201 DISALLOW_COPY_AND_ASSIGN(AgcAudioStream<AudioInterface>); 202 DISALLOW_COPY_AND_ASSIGN(AgcAudioStream<AudioInterface>);
202 }; 203 };
203 204
204 } // namespace media 205 } // namespace media
205 206
206 #endif // MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ 207 #endif // MEDIA_AUDIO_AGC_AUDIO_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698