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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // as satish has ensured that Speech Input also uses the default low- 243 // as satish has ensured that Speech Input also uses the default low-
244 // latency path. See crbug.com/112472 for details. 244 // latency path. See crbug.com/112472 for details.
245 entry->writer.reset(writer.release()); 245 entry->writer.reset(writer.release());
246 entry->controller = media::AudioInputController::CreateLowLatency( 246 entry->controller = media::AudioInputController::CreateLowLatency(
247 audio_manager_, 247 audio_manager_,
248 this, 248 this,
249 audio_params, 249 audio_params,
250 device_id, 250 device_id,
251 entry->writer.get()); 251 entry->writer.get());
252 252
253 if (!entry->controller) { 253 if (!entry->controller.get()) {
254 SendErrorMessage(stream_id); 254 SendErrorMessage(stream_id);
255 return; 255 return;
256 } 256 }
257 257
258 // Set the initial AGC state for the audio input stream. 258 // Set the initial AGC state for the audio input stream.
259 entry->controller->SetAutomaticGainControl(automatic_gain_control); 259 entry->controller->SetAutomaticGainControl(automatic_gain_control);
260 260
261 // If we have created the controller successfully create a entry and add it 261 // If we have created the controller successfully create a entry and add it
262 // to the map. 262 // to the map.
263 entry->stream_id = stream_id; 263 entry->stream_id = stream_id;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 for (SessionEntryMap::iterator it = session_entries_.begin(); 422 for (SessionEntryMap::iterator it = session_entries_.begin();
423 it != session_entries_.end(); ++it) { 423 it != session_entries_.end(); ++it) {
424 if (stream_id == it->second) { 424 if (stream_id == it->second) {
425 return it->first; 425 return it->first;
426 } 426 }
427 } 427 }
428 return 0; 428 return 0;
429 } 429 }
430 430
431 } // namespace content 431 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698