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 entire RenderFrame tree associated with a WebContents instance. The |
7 // of data is produced by format-converting and mixing all audio output from a | 7 // single stream of data is produced by format-converting and mixing all audio |
8 // RenderView. In other words, WebContentsAudioInputStream provides tab-level | 8 // output streams. As the RenderFrameHost tree mutates (e.g., due to page |
| 9 // navigations, or crashes/reloads), the stream will continue without |
| 10 // interruption. In other words, WebContentsAudioInputStream provides tab-level |
9 // audio mirroring. | 11 // audio mirroring. |
10 // | |
11 // The implementation observes a WebContents instance (which represents a | |
12 // browser tab) so that it can track the replacement of RenderViews due to | |
13 // navigation, crash/reload, etc. events; and take appropriate actions to | |
14 // provide a seamless, uninterrupted mirroring experience. | |
15 | 12 |
16 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ | 13 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ |
17 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ | 14 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ |
18 | 15 |
19 #include <string> | 16 #include <string> |
20 | 17 |
21 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
22 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
23 #include "media/audio/audio_io.h" | 20 #include "media/audio/audio_io.h" |
24 | 21 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual ~WebContentsAudioInputStream(); | 80 virtual ~WebContentsAudioInputStream(); |
84 | 81 |
85 scoped_refptr<Impl> impl_; | 82 scoped_refptr<Impl> impl_; |
86 | 83 |
87 DISALLOW_COPY_AND_ASSIGN(WebContentsAudioInputStream); | 84 DISALLOW_COPY_AND_ASSIGN(WebContentsAudioInputStream); |
88 }; | 85 }; |
89 | 86 |
90 } // namespace content | 87 } // namespace content |
91 | 88 |
92 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ | 89 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_AUDIO_INPUT_STREAM_H_ |
OLD | NEW |