| OLD | NEW |
| 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 #include "media/audio/audio_input_controller.h" | 5 #include "media/audio/audio_input_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "media/audio/audio_parameters.h" | |
| 16 #include "media/base/user_input_monitor.h" | 15 #include "media/base/user_input_monitor.h" |
| 17 | 16 |
| 18 using base::TimeDelta; | 17 using base::TimeDelta; |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 const int kMaxInputChannels = 3; | 21 const int kMaxInputChannels = 3; |
| 23 | 22 |
| 24 // TODO(henrika): remove usage of timers and add support for proper | 23 // TODO(henrika): remove usage of timers and add support for proper |
| 25 // notification of when the input device is removed. This was originally added | 24 // notification of when the input device is removed. This was originally added |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 } | 670 } |
| 672 | 671 |
| 673 void AudioInputController::LogSilenceState(SilenceState value) { | 672 void AudioInputController::LogSilenceState(SilenceState value) { |
| 674 UMA_HISTOGRAM_ENUMERATION("Media.AudioInputControllerSessionSilenceReport", | 673 UMA_HISTOGRAM_ENUMERATION("Media.AudioInputControllerSessionSilenceReport", |
| 675 value, | 674 value, |
| 676 SILENCE_STATE_MAX + 1); | 675 SILENCE_STATE_MAX + 1); |
| 677 } | 676 } |
| 678 #endif | 677 #endif |
| 679 | 678 |
| 680 } // namespace media | 679 } // namespace media |
| OLD | NEW |