diff options
Diffstat (limited to 'webkit/api/src/WebMediaPlayerClientImpl.cpp')
-rw-r--r-- | webkit/api/src/WebMediaPlayerClientImpl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/webkit/api/src/WebMediaPlayerClientImpl.cpp b/webkit/api/src/WebMediaPlayerClientImpl.cpp index d26bd16..884d45b 100644 --- a/webkit/api/src/WebMediaPlayerClientImpl.cpp +++ b/webkit/api/src/WebMediaPlayerClientImpl.cpp @@ -361,6 +361,34 @@ void WebMediaPlayerClientImpl::setAutobuffer(bool autoBuffer) m_webMediaPlayer->setAutoBuffer(autoBuffer); } +bool WebMediaPlayerClientImpl::hasSingleSecurityOrigin() const +{ + if (m_webMediaPlayer.get()) + return m_webMediaPlayer->hasSingleSecurityOrigin(); + return false; +} + +MediaPlayer::MovieLoadType WebMediaPlayerClientImpl::movieLoadType() const +{ + COMPILE_ASSERT( + int(WebMediaPlayer::Unknown) == int(MediaPlayer::Unknown), + Unknown); + COMPILE_ASSERT( + int(WebMediaPlayer::Download) == int(MediaPlayer::Download), + Download); + COMPILE_ASSERT( + int(WebMediaPlayer::StoredStream) == int(MediaPlayer::StoredStream), + StoredStream); + COMPILE_ASSERT( + int(WebMediaPlayer::LiveStream) == int(MediaPlayer::LiveStream), + LiveStream); + + if (m_webMediaPlayer.get()) + return static_cast<MediaPlayer::MovieLoadType>( + m_webMediaPlayer->movieLoadType()); + return MediaPlayer::Unknown; +} + MediaPlayerPrivateInterface* WebMediaPlayerClientImpl::create(MediaPlayer* player) { WebMediaPlayerClientImpl* client = new WebMediaPlayerClientImpl(); |