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

Side by Side Diff: content/browser/renderer_host/media/audio_input_renderer_host.cc

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | Annotate | Revision Log
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 "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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698