summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmediaplayer_impl.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-07 02:24:44 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-07 02:24:44 +0000
commit4e6be3fc92efcbedfedbc003892ad56682058971 (patch)
treecaa72331addc9a7f348394cc330c6b1ba1bac623 /webkit/glue/webmediaplayer_impl.cc
parent4492c17d67cfbd62ef28e18871c3a08dd07248d9 (diff)
downloadchromium_src-4e6be3fc92efcbedfedbc003892ad56682058971.zip
chromium_src-4e6be3fc92efcbedfedbc003892ad56682058971.tar.gz
chromium_src-4e6be3fc92efcbedfedbc003892ad56682058971.tar.bz2
Refactor media player to move away from webkit_glue
Highlights: 1. WebCore::MediaPlayerPrivate now only has one static method that constructs WebMediaPlayerClient 2. Implementation of WebCore::MediaPlayerPrivateInterface now is WebMediaPlayerClient 3. WebMediaPlayerClient does the delgation to WebMediaPlayer 4. Implemtnation of real media player will go into chrome/renderer and implements WebMediaPlayer Review URL: http://codereview.chromium.org/105007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.cc')
-rw-r--r--webkit/glue/webmediaplayer_impl.cc90
1 files changed, 0 insertions, 90 deletions
diff --git a/webkit/glue/webmediaplayer_impl.cc b/webkit/glue/webmediaplayer_impl.cc
deleted file mode 100644
index 1a17346..0000000
--- a/webkit/glue/webmediaplayer_impl.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
-// source code is governed by a BSD-style license that can be found in the
-// LICENSE file.
-
-#include "config.h"
-
-#include "FrameView.h"
-#include "MediaPlayerPrivateChromium.h"
-#include "PlatformString.h"
-#include "ResourceRequest.h"
-#include "ResourceHandle.h"
-#undef LOG
-
-#include "googleurl/src/gurl.h"
-#include "webkit/glue/glue_util.h"
-#include "webkit/glue/weberror_impl.h"
-#include "webkit/glue/webframe_impl.h"
-#include "webkit/glue/webmediaplayer_delegate.h"
-#include "webkit/glue/webmediaplayer_impl.h"
-#include "webkit/glue/webresponse_impl.h"
-#include "webkit/glue/weburlrequest_impl.h"
-
-#if ENABLE(VIDEO)
-
-namespace webkit_glue {
-
-WebMediaPlayerImpl::WebMediaPlayerImpl(
- WebCore::MediaPlayerPrivate* media_player_private)
- : media_player_private_(media_player_private) {
-}
-
-WebMediaPlayerImpl::~WebMediaPlayerImpl() {
-}
-
-void WebMediaPlayerImpl::Initialize(WebMediaPlayerDelegate* delegate){
- delegate_ = delegate;
-}
-
-WebFrame* WebMediaPlayerImpl::GetWebFrame() {
- if (media_player_private_ && media_player_private_->frameView()->frame()) {
- return WebFrameImpl::FromFrame(
- media_player_private_->frameView()->frame());
- } else {
- return NULL;
- }
-}
-
-void WebMediaPlayerImpl::NotifyNetworkStateChange() {
- if (media_player_private_)
- media_player_private_->networkStateChanged();
-}
-
-void WebMediaPlayerImpl::NotifyReadyStateChange() {
- if (media_player_private_)
- media_player_private_->readyStateChanged();
-}
-
-void WebMediaPlayerImpl::NotifyTimeChange() {
- if (media_player_private_)
- media_player_private_->timeChanged();
-}
-
-void WebMediaPlayerImpl::NotifyVolumeChange() {
- if (media_player_private_)
- media_player_private_->volumeChanged();
-}
-
-void WebMediaPlayerImpl::NotifySizeChanged() {
- if (media_player_private_)
- media_player_private_->sizeChanged();
-}
-
-void WebMediaPlayerImpl::NotifyRateChanged() {
- if (media_player_private_)
- media_player_private_->rateChanged();
-}
-
-void WebMediaPlayerImpl::NotifyDurationChanged() {
- if (media_player_private_)
- media_player_private_->durationChanged();
-}
-
-void WebMediaPlayerImpl::Repaint() {
- if (media_player_private_)
- media_player_private_->repaint();
-}
-
-} // namespace webkit_glue
-
-#endif // ENABLE(VIDEO)