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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
« no previous file with comments | « media/audio/agc_audio_stream.h ('k') | media/audio/audio_output_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUDIO_OUTPUT_CONTROLLER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
7 7
8 #include "base/atomic_ref_count.h" 8 #include "base/atomic_ref_count.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 SyncReader* const sync_reader_; 241 SyncReader* const sync_reader_;
242 242
243 // The message loop of audio manager thread that this object runs on. 243 // The message loop of audio manager thread that this object runs on.
244 const scoped_refptr<base::SingleThreadTaskRunner> message_loop_; 244 const scoped_refptr<base::SingleThreadTaskRunner> message_loop_;
245 245
246 // Scans audio samples from OnMoreData() as input to compute power levels. 246 // Scans audio samples from OnMoreData() as input to compute power levels.
247 AudioPowerMonitor power_monitor_; 247 AudioPowerMonitor power_monitor_;
248 248
249 // Flags when we've asked for a stream to start but it never did. 249 // Flags when we've asked for a stream to start but it never did.
250 base::AtomicRefCount on_more_io_data_called_; 250 base::AtomicRefCount on_more_io_data_called_;
251 scoped_ptr<base::OneShotTimer<AudioOutputController> > wedge_timer_; 251 scoped_ptr<base::OneShotTimer> wedge_timer_;
252 252
253 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); 253 DISALLOW_COPY_AND_ASSIGN(AudioOutputController);
254 }; 254 };
255 255
256 } // namespace media 256 } // namespace media
257 257
258 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 258 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « media/audio/agc_audio_stream.h ('k') | media/audio/audio_output_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698