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 "content/browser/renderer_host/media/audio_input_renderer_host.h" | 5 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 entry->shared_memory.created_size())); | 136 entry->shared_memory.created_size())); |
137 } | 137 } |
138 | 138 |
139 void AudioInputRendererHost::DoSendRecordingMessage( | 139 void AudioInputRendererHost::DoSendRecordingMessage( |
140 media::AudioInputController* controller) { | 140 media::AudioInputController* controller) { |
141 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 141 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
142 // TODO(henrika): See crbug.com/115262 for details on why this method | 142 // TODO(henrika): See crbug.com/115262 for details on why this method |
143 // should be implemented. | 143 // should be implemented. |
144 } | 144 } |
145 | 145 |
146 void AudioInputRendererHost::DoSendPausedMessage( | |
147 media::AudioInputController* controller) { | |
148 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | |
149 // TODO(henrika): TBI? | |
150 NOTREACHED(); | |
151 } | |
152 | |
153 void AudioInputRendererHost::DoHandleError( | 146 void AudioInputRendererHost::DoHandleError( |
154 media::AudioInputController* controller, | 147 media::AudioInputController* controller, |
155 int error_code) { | 148 int error_code) { |
156 DLOG(WARNING) << "AudioInputRendererHost::DoHandleError(error_code=" | 149 DLOG(WARNING) << "AudioInputRendererHost::DoHandleError(error_code=" |
157 << error_code << ")"; | 150 << error_code << ")"; |
158 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 151 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
159 | 152 |
160 AudioEntry* entry = LookupByController(controller); | 153 AudioEntry* entry = LookupByController(controller); |
161 if (!entry) | 154 if (!entry) |
162 return; | 155 return; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 400 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
408 | 401 |
409 for (SessionEntryMap::iterator it = session_entries_.begin(); | 402 for (SessionEntryMap::iterator it = session_entries_.begin(); |
410 it != session_entries_.end(); ++it) { | 403 it != session_entries_.end(); ++it) { |
411 if (stream_id == it->second) { | 404 if (stream_id == it->second) { |
412 return it->first; | 405 return it->first; |
413 } | 406 } |
414 } | 407 } |
415 return 0; | 408 return 0; |
416 } | 409 } |
OLD | NEW |