summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webmediaplayer_delegate_impl.h
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 01:44:41 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 01:44:41 +0000
commitba4363e6ca4c3667c4640666e66fbdf5ab162dec (patch)
tree9c6a90313208612481cd7045d8100978e4672b86 /chrome/renderer/webmediaplayer_delegate_impl.h
parent0e8588c1528cad6732d172775aba8e891baebdef (diff)
downloadchromium_src-ba4363e6ca4c3667c4640666e66fbdf5ab162dec.zip
chromium_src-ba4363e6ca4c3667c4640666e66fbdf5ab162dec.tar.gz
chromium_src-ba4363e6ca4c3667c4640666e66fbdf5ab162dec.tar.bz2
Load media resource with file handle for media playback
Used ResourceDispatcher to provide resource loading mechanism for media playback in DataSourceImpl. So now DataSourceImpl actually initialize the resource loading in browser process using ResourceDispatcher and IPCResourceLoaderBridge. DataSourceImpl will be using the file handle provided in resource response for reading and listen on OnDownloadProgress for download progress. Review URL: http://codereview.chromium.org/39159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webmediaplayer_delegate_impl.h')
-rw-r--r--chrome/renderer/webmediaplayer_delegate_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/webmediaplayer_delegate_impl.h b/chrome/renderer/webmediaplayer_delegate_impl.h
index 4f8df38..b557393 100644
--- a/chrome/renderer/webmediaplayer_delegate_impl.h
+++ b/chrome/renderer/webmediaplayer_delegate_impl.h
@@ -52,6 +52,7 @@
#include "webkit/glue/webmediaplayer_delegate.h"
class AudioRendererImpl;
+class DataSourceImpl;
class RenderView;
class VideoRendererImpl;
@@ -142,6 +143,7 @@ class WebMediaPlayerDelegateImpl : public webkit_glue::WebMediaPlayerDelegate,
// WebMediaPlayerDelegateImpl has references to them.
void SetAudioRenderer(AudioRendererImpl* audio_renderer);
void SetVideoRenderer(VideoRendererImpl* video_renderer);
+ void SetDataSource(DataSourceImpl* data_source);
// Called from VideoRenderer to fire a repaint task to main_loop_.
void PostRepaintTask();
@@ -189,6 +191,9 @@ class WebMediaPlayerDelegateImpl : public webkit_glue::WebMediaPlayerDelegate,
// from WebKit.
scoped_refptr<VideoRendererImpl> video_renderer_;
+ // Pointer to DataSourceImpl so we can release render resources.
+ scoped_refptr<DataSourceImpl> data_source_;
+
webkit_glue::WebMediaPlayer* web_media_player_;
RenderView* view_;