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

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

Issue 172003004: Fixit: Move tab and desktop capture code to new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/process/process.h" 10 #include "base/process/process.h"
11 #include "content/browser/media/capture/web_contents_audio_input_stream.h"
12 #include "content/browser/media/capture/web_contents_capture_util.h"
11 #include "content/browser/media/media_internals.h" 13 #include "content/browser/media/media_internals.h"
12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" 14 #include "content/browser/renderer_host/media/audio_input_device_manager.h"
13 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" 15 #include "content/browser/renderer_host/media/audio_input_sync_writer.h"
14 #include "content/browser/renderer_host/media/media_stream_manager.h" 16 #include "content/browser/renderer_host/media/media_stream_manager.h"
15 #include "content/browser/renderer_host/media/web_contents_audio_input_stream.h"
16 #include "content/browser/renderer_host/media/web_contents_capture_util.h"
17 #include "media/audio/audio_manager_base.h" 17 #include "media/audio/audio_manager_base.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 struct AudioInputRendererHost::AudioEntry { 21 struct AudioInputRendererHost::AudioEntry {
22 AudioEntry(); 22 AudioEntry();
23 ~AudioEntry(); 23 ~AudioEntry();
24 24
25 // The AudioInputController that manages the audio input stream. 25 // The AudioInputController that manages the audio input stream.
26 scoped_refptr<media::AudioInputController> controller; 26 scoped_refptr<media::AudioInputController> controller;
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // TODO(hclam): Implement a faster look up method. 416 // TODO(hclam): Implement a faster look up method.
417 for (AudioEntryMap::iterator i = audio_entries_.begin(); 417 for (AudioEntryMap::iterator i = audio_entries_.begin();
418 i != audio_entries_.end(); ++i) { 418 i != audio_entries_.end(); ++i) {
419 if (controller == i->second->controller.get()) 419 if (controller == i->second->controller.get())
420 return i->second; 420 return i->second;
421 } 421 }
422 return NULL; 422 return NULL;
423 } 423 }
424 424
425 } // namespace content 425 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/OWNERS ('k') | content/browser/renderer_host/media/audio_mirroring_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698