OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "config.h" | 5 #include "config.h" |
6 #include "web/WebMediaPlayerClientImpl.h" | 6 #include "web/WebMediaPlayerClientImpl.h" |
7 | 7 |
8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
9 #include "core/html/HTMLMediaElement.h" | 9 #include "core/html/HTMLMediaElement.h" |
10 #include "core/html/TimeRanges.h" | 10 #include "core/html/TimeRanges.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 m_webAudioSourceProvider = provider; | 249 m_webAudioSourceProvider = provider; |
250 if (m_webAudioSourceProvider) | 250 if (m_webAudioSourceProvider) |
251 m_webAudioSourceProvider->setClient(m_client.get()); | 251 m_webAudioSourceProvider->setClient(m_client.get()); |
252 } | 252 } |
253 | 253 |
254 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::setClient(AudioSourcePro
viderClient* client) | 254 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::setClient(AudioSourcePro
viderClient* client) |
255 { | 255 { |
256 MutexLocker locker(provideInputLock); | 256 MutexLocker locker(provideInputLock); |
257 | 257 |
258 if (client) | 258 if (client) |
259 m_client = adoptPtrWillBeNoop(new WebMediaPlayerClientImpl::AudioClientI
mpl(client)); | 259 m_client = new WebMediaPlayerClientImpl::AudioClientImpl(client); |
260 else | 260 else |
261 m_client.clear(); | 261 m_client.clear(); |
262 | 262 |
263 if (m_webAudioSourceProvider) | 263 if (m_webAudioSourceProvider) |
264 m_webAudioSourceProvider->setClient(m_client.get()); | 264 m_webAudioSourceProvider->setClient(m_client.get()); |
265 } | 265 } |
266 | 266 |
267 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::provideInput(AudioBus* b
us, size_t framesToProcess) | 267 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::provideInput(AudioBus* b
us, size_t framesToProcess) |
268 { | 268 { |
269 ASSERT(bus); | 269 ASSERT(bus); |
(...skipping 22 matching lines...) Expand all Loading... |
292 } | 292 } |
293 | 293 |
294 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) | 294 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) |
295 { | 295 { |
296 visitor->trace(m_client); | 296 visitor->trace(m_client); |
297 } | 297 } |
298 | 298 |
299 #endif | 299 #endif |
300 | 300 |
301 } // namespace blink | 301 } // namespace blink |
OLD | NEW |