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

Side by Side Diff: media/audio/audio_input_controller.cc

Issue 1133363002: Getting rid of duplicate includes from media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/alsa/alsa_wrapper.cc ('k') | media/audio/audio_input_device.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 #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
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
OLDNEW
« no previous file with comments | « media/audio/alsa/alsa_wrapper.cc ('k') | media/audio/audio_input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698