diff options
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.h')
-rw-r--r-- | webkit/glue/webmediaplayer_impl.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h index 26825da..bae0d9b 100644 --- a/webkit/glue/webmediaplayer_impl.h +++ b/webkit/glue/webmediaplayer_impl.h @@ -69,6 +69,10 @@ class GURL; +namespace WebKit { +class WebFrame; +} + namespace webkit_glue { class MediaResourceLoaderBridgeFactory; @@ -91,12 +95,12 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, Proxy(MessageLoop* render_loop, WebMediaPlayerImpl* webmediaplayer); - // Methods for MediaFilter -> WebMediaPlayerImpl communication. + // Methods for Filter -> WebMediaPlayerImpl communication. void Repaint(); void SetVideoRenderer(scoped_refptr<WebVideoRenderer> video_renderer); void SetDataSource(scoped_refptr<WebDataSource> data_source); - // Methods for WebMediaPlayerImpl -> MediaFilter communication. + // Methods for WebMediaPlayerImpl -> Filter communication. void Paint(skia::PlatformCanvas* canvas, const gfx::Rect& dest_rect); void SetSize(const gfx::Rect& rect); void Detach(); @@ -171,13 +175,12 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, // // Callers must call |Initialize()| before they can use the object. WebMediaPlayerImpl(WebKit::WebMediaPlayerClient* client, - media::MediaFilterCollection* collection); + media::FilterCollection* collection); virtual ~WebMediaPlayerImpl(); // Finalizes initialization of the object. bool Initialize( - MediaResourceLoaderBridgeFactory* bridge_factory_simple, - MediaResourceLoaderBridgeFactory* bridge_factory_buffered, + WebKit::WebFrame* frame, bool use_simple_data_source, scoped_refptr<WebVideoRenderer> web_video_renderer); @@ -223,12 +226,8 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, // Internal states of loading and network. // TODO(hclam): Ask the pipeline about the state rather than having reading // them from members which would cause race conditions. - virtual WebKit::WebMediaPlayer::NetworkState networkState() const { - return network_state_; - } - virtual WebKit::WebMediaPlayer::ReadyState readyState() const { - return ready_state_; - } + virtual WebKit::WebMediaPlayer::NetworkState networkState() const; + virtual WebKit::WebMediaPlayer::ReadyState readyState() const; virtual unsigned long long bytesLoaded() const; virtual unsigned long long totalBytes() const; @@ -285,7 +284,7 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, MessageLoop* main_loop_; // A collection of filters. - scoped_ptr<media::MediaFilterCollection> filter_collection_; + scoped_ptr<media::FilterCollection> filter_collection_; // The actual pipeline and the thread it runs on. scoped_refptr<media::Pipeline> pipeline_; @@ -304,6 +303,7 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, // clock can creep forward a little bit while the asynchronous // SetPlaybackRate(0) is being executed. bool paused_; + bool seeking_; float playback_rate_; base::TimeDelta paused_time_; |