OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/thread_restrictions.h" | 7 #include "base/threading/thread_restrictions.h" |
8 #include "media/base/limits.h" | 8 #include "media/base/limits.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 const int kMaxInputChannels = 2; | 12 const int kMaxInputChannels = 2; |
13 | 13 |
14 } // namespace | 14 } // namespace |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 | 17 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 157 } |
158 | 158 |
159 void AudioInputController::OnError(AudioInputStream* stream, int code) { | 159 void AudioInputController::OnError(AudioInputStream* stream, int code) { |
160 // Handle error on the audio controller thread. | 160 // Handle error on the audio controller thread. |
161 thread_.message_loop()->PostTask( | 161 thread_.message_loop()->PostTask( |
162 FROM_HERE, | 162 FROM_HERE, |
163 NewRunnableMethod(this, &AudioInputController::DoReportError, code)); | 163 NewRunnableMethod(this, &AudioInputController::DoReportError, code)); |
164 } | 164 } |
165 | 165 |
166 } // namespace media | 166 } // namespace media |
OLD | NEW |