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

Side by Side Diff: chromeos/audio/cras_audio_handler.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 | « chrome/test/remoting/waiter.h ('k') | chromeos/geolocation/simple_geolocation_request.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 uint64_t active_input_node_id_; 349 uint64_t active_input_node_id_;
350 bool has_alternative_input_; 350 bool has_alternative_input_;
351 bool has_alternative_output_; 351 bool has_alternative_output_;
352 352
353 bool output_mute_locked_; 353 bool output_mute_locked_;
354 354
355 // Failures are not logged at startup, since CRAS may not be running yet. 355 // Failures are not logged at startup, since CRAS may not be running yet.
356 bool log_errors_; 356 bool log_errors_;
357 357
358 // Timer for HDMI re-discovering grace period. 358 // Timer for HDMI re-discovering grace period.
359 base::OneShotTimer<CrasAudioHandler> hdmi_rediscover_timer_; 359 base::OneShotTimer hdmi_rediscover_timer_;
360 int hdmi_rediscover_grace_period_duration_in_ms_; 360 int hdmi_rediscover_grace_period_duration_in_ms_;
361 bool hdmi_rediscovering_; 361 bool hdmi_rediscovering_;
362 362
363 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_; 363 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_;
364 364
365 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler); 365 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler);
366 }; 366 };
367 367
368 } // namespace chromeos 368 } // namespace chromeos
369 369
370 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 370 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/test/remoting/waiter.h ('k') | chromeos/geolocation/simple_geolocation_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698