| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // An AudioInputStream which provides a loop-back of all audio output generated | 5 // An AudioInputStream which provides a loop-back of all audio output generated |
| 6 // by the RenderView associated with a WebContents instance. The single stream | 6 // by the RenderView associated with a WebContents instance. The single stream |
| 7 // of data is produced by format-converting and mixing all audio output from a | 7 // of data is produced by format-converting and mixing all audio output from a |
| 8 // RenderView. In other words, WebContentsAudioInputStream provides tab-level | 8 // RenderView. In other words, WebContentsAudioInputStream provides tab-level |
| 9 // audio mirroring. | 9 // audio mirroring. |
| 10 // | 10 // |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 friend class WebContentsAudioInputStreamTest; | 68 friend class WebContentsAudioInputStreamTest; |
| 69 | 69 |
| 70 // Maintain most state and functionality in an internal ref-counted | 70 // Maintain most state and functionality in an internal ref-counted |
| 71 // implementation class. This object must outlive a call to Close(), until | 71 // implementation class. This object must outlive a call to Close(), until |
| 72 // the shutdown tasks running on other threads complete: The | 72 // the shutdown tasks running on other threads complete: The |
| 73 // AudioMirroringManager on the IO thread, the WebContentsTracker on the UI | 73 // AudioMirroringManager on the IO thread, the WebContentsTracker on the UI |
| 74 // thread, and the VirtualAudioOuputStreams on the audio thread. | 74 // thread, and the VirtualAudioOuputStreams on the audio thread. |
| 75 class Impl; | 75 class Impl; |
| 76 | 76 |
| 77 WebContentsAudioInputStream( | 77 WebContentsAudioInputStream( |
| 78 int render_process_id, int render_view_id, | 78 int render_process_id, int main_render_frame_id, |
| 79 AudioMirroringManager* mirroring_manager, | 79 AudioMirroringManager* mirroring_manager, |
| 80 const scoped_refptr<WebContentsTracker>& tracker, | 80 const scoped_refptr<WebContentsTracker>& tracker, |
| 81 media::VirtualAudioInputStream* mixer_stream); | 81 media::VirtualAudioInputStream* mixer_stream); |
| 82 | 82 |
| 83 virtual ~WebContentsAudioInputStream(); | 83 virtual ~WebContentsAudioInputStream(); |
| 84 | 84 |
| 85 scoped_refptr<Impl> impl_; | 85 scoped_refptr<Impl> impl_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(WebContentsAudioInputStream); | 87 DISALLOW_COPY_AND_ASSIGN(WebContentsAudioInputStream); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace content | 90 } // namespace content |
| 91 | 91 |
| 92 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ | 92 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ |
| OLD | NEW |