| OLD | NEW |
| 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 #ifndef CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "media/audio/audio_parameters.h" | |
| 15 #include "media/base/audio_bus.h" | 14 #include "media/base/audio_bus.h" |
| 16 #include "media/base/audio_capturer_source.h" | 15 #include "media/base/audio_capturer_source.h" |
| 16 #include "media/base/audio_parameters.h" |
| 17 #include "media/base/audio_push_fifo.h" | 17 #include "media/base/audio_push_fifo.h" |
| 18 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" | 18 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" |
| 19 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 19 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 20 #include "third_party/WebKit/public/platform/WebVector.h" | 20 #include "third_party/WebKit/public/platform/WebVector.h" |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 | 23 |
| 24 class WebRtcLocalAudioTrack; | 24 class WebRtcLocalAudioTrack; |
| 25 | 25 |
| 26 // WebAudioCapturerSource is the missing link between | 26 // WebAudioCapturerSource is the missing link between |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // This object registers with a blink::WebMediaStreamSource. We keep track of | 92 // This object registers with a blink::WebMediaStreamSource. We keep track of |
| 93 // that in order to be able to deregister before stopping the audio track. | 93 // that in order to be able to deregister before stopping the audio track. |
| 94 blink::WebMediaStreamSource blink_source_; | 94 blink::WebMediaStreamSource blink_source_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); | 96 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace content | 99 } // namespace content |
| 100 | 100 |
| 101 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 101 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
| OLD | NEW |