| 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> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 9 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 10 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 11 #include "media/audio/audio_parameters.h" | 14 #include "media/audio/audio_parameters.h" |
| 12 #include "media/base/audio_capturer_source.h" | 15 #include "media/base/audio_capturer_source.h" |
| 13 #include "media/base/audio_fifo.h" | 16 #include "media/base/audio_fifo.h" |
| 14 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" | 17 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" |
| 15 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 18 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 16 #include "third_party/WebKit/public/platform/WebVector.h" | 19 #include "third_party/WebKit/public/platform/WebVector.h" |
| 17 | 20 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // This object registers with a blink::WebMediaStreamSource. We keep track of | 91 // This object registers with a blink::WebMediaStreamSource. We keep track of |
| 89 // that in order to be able to deregister before stopping the audio track. | 92 // that in order to be able to deregister before stopping the audio track. |
| 90 blink::WebMediaStreamSource blink_source_; | 93 blink::WebMediaStreamSource blink_source_; |
| 91 | 94 |
| 92 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); | 95 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 } // namespace content | 98 } // namespace content |
| 96 | 99 |
| 97 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 100 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
| OLD | NEW |