| 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 "WebMediaPlayerClientImpl.h" | 6 #include "WebMediaPlayerClientImpl.h" |
| 7 | 7 |
| 8 #include "InbandTextTrackPrivateImpl.h" | 8 #include "InbandTextTrackPrivateImpl.h" |
| 9 #include "WebAudioSourceProvider.h" | 9 #include "WebAudioSourceProvider.h" |
| 10 #include "WebDocument.h" | 10 #include "WebDocument.h" |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 // MediaPlayerPrivateInterface ------------------------------------------------- | 308 // MediaPlayerPrivateInterface ------------------------------------------------- |
| 309 | 309 |
| 310 void WebMediaPlayerClientImpl::load(const String& url) | 310 void WebMediaPlayerClientImpl::load(const String& url) |
| 311 { | 311 { |
| 312 m_url = KURL(ParsedURLString, url); | 312 m_url = KURL(ParsedURLString, url); |
| 313 m_mediaSource = 0; | 313 m_mediaSource = 0; |
| 314 loadRequested(); | 314 loadRequested(); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void WebMediaPlayerClientImpl::load(const String& url, PassRefPtr<WebCore::Media
Source> mediaSource) | 317 void WebMediaPlayerClientImpl::load(const String& url, PassRefPtr<WebCore::WebKi
tMediaSource> mediaSource) |
| 318 { | 318 { |
| 319 m_url = KURL(ParsedURLString, url); | 319 m_url = KURL(ParsedURLString, url); |
| 320 m_mediaSource = mediaSource; | 320 m_mediaSource = mediaSource; |
| 321 loadRequested(); | 321 loadRequested(); |
| 322 } | 322 } |
| 323 | 323 |
| 324 void WebMediaPlayerClientImpl::loadRequested() | 324 void WebMediaPlayerClientImpl::loadRequested() |
| 325 { | 325 { |
| 326 if (m_preload == MediaPlayer::None) { | 326 if (m_preload == MediaPlayer::None) { |
| 327 #if ENABLE(WEB_AUDIO) | 327 #if ENABLE(WEB_AUDIO) |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 | 879 |
| 880 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) | 880 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) |
| 881 { | 881 { |
| 882 if (m_client) | 882 if (m_client) |
| 883 m_client->setFormat(numberOfChannels, sampleRate); | 883 m_client->setFormat(numberOfChannels, sampleRate); |
| 884 } | 884 } |
| 885 | 885 |
| 886 #endif | 886 #endif |
| 887 | 887 |
| 888 } // namespace WebKit | 888 } // namespace WebKit |
| OLD | NEW |