diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 02:24:44 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 02:24:44 +0000 |
commit | 4e6be3fc92efcbedfedbc003892ad56682058971 (patch) | |
tree | caa72331addc9a7f348394cc330c6b1ba1bac623 /webkit/glue/webmediaplayer_impl.h | |
parent | 4492c17d67cfbd62ef28e18871c3a08dd07248d9 (diff) | |
download | chromium_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.h')
-rw-r--r-- | webkit/glue/webmediaplayer_impl.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h deleted file mode 100644 index 3dc29e5..0000000 --- a/webkit/glue/webmediaplayer_impl.h +++ /dev/null @@ -1,71 +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. -// -// Wrapper over WebCore::MediaPlayerPrivate. It also would handle resource -// loading for the internal media player. - -#ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ -#define WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ - -#include "webkit/glue/webmediaplayer.h" - -#if ENABLE(VIDEO) - -namespace WebCore { -class MediaPlayerPrivate; -class ResourceHandle; -} - -namespace webkit_glue { - -class WebMediaPlayerDelegate; - -class WebMediaPlayerImpl : public WebMediaPlayer { - public: - explicit WebMediaPlayerImpl( - WebCore::MediaPlayerPrivate* media_player_private); - - virtual ~WebMediaPlayerImpl(); - - virtual void Initialize(WebMediaPlayerDelegate* delegate); - - // Get the web frame associated with the media player - virtual WebFrame* GetWebFrame(); - - // Notify the media player about network state change. - virtual void NotifyNetworkStateChange(); - - // Notify the media player about ready state change. - virtual void NotifyReadyStateChange(); - - // Notify the media player about time change. - virtual void NotifyTimeChange(); - - // Notify the media player about volume change. - virtual void NotifyVolumeChange(); - - // Notify the media player size of video frame changed. - virtual void NotifySizeChanged(); - - // Notify the media player playback rate has changed. - virtual void NotifyRateChanged(); - - // Notify the media player duration of the media file has changed. - virtual void NotifyDurationChanged(); - - // Tell the media player to repaint itself. - virtual void Repaint(); - - private: - WebCore::MediaPlayerPrivate* media_player_private_; - WebMediaPlayerDelegate* delegate_; - - DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); -}; - -} // namespace webkit_glue - -#endif // ENABLE(VIDEO) - -#endif // WEBKIT_GLUE_WEBMEDIAPLAYER_H_ |