summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-21 03:59:04 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-21 03:59:04 +0000
commit80f584d94f57afdfddeba1fa7384ed409cd91273 (patch)
treed6e51ebde489e245e98e56ca061c0dce78895d63 /chrome/renderer
parent204e936d3b0455b0c55f2dc5713f8a84b55e0cbf (diff)
downloadchromium_src-80f584d94f57afdfddeba1fa7384ed409cd91273.zip
chromium_src-80f584d94f57afdfddeba1fa7384ed409cd91273.tar.gz
chromium_src-80f584d94f57afdfddeba1fa7384ed409cd91273.tar.bz2
Support for playing back media from the appcache.
* add the appcache_host_id to resource requests * support for byte-range requests TEST=manual BUG=none Review URL: http://codereview.chromium.org/550040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36727 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index ae63e2b..9b6c758 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -96,7 +96,7 @@
#include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h"
#include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h"
#include "third_party/WebKit/WebKit/chromium/public/WebVector.h"
-#include "webkit/appcache/appcache_interfaces.h"
+#include "webkit/appcache/web_application_cache_host_impl.h"
#include "webkit/default_plugin/default_plugin_shared.h"
#include "webkit/glue/glue_serialize.h"
#include "webkit/glue/dom_operations.h"
@@ -117,6 +117,7 @@
#include "app/gfx/native_theme_win.h"
#endif
+using appcache::WebApplicationCacheHostImpl;
using base::Time;
using base::TimeDelta;
using webkit_glue::AltErrorPageResourceFetcher;
@@ -1934,6 +1935,9 @@ WebMediaPlayer* RenderView::createMediaPlayer(
AudioRendererImpl::CreateFactory(audio_message_filter()));
}
+ WebApplicationCacheHostImpl* appcache_host =
+ WebApplicationCacheHostImpl::FromFrame(frame);
+
// TODO(hclam): obtain the following parameters from |client|.
webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory =
new webkit_glue::MediaResourceLoaderBridgeFactory(
@@ -1941,7 +1945,7 @@ WebMediaPlayer* RenderView::createMediaPlayer(
"null", // frame origin
"null", // main_frame_origin
base::GetCurrentProcId(),
- appcache::kNoHostId,
+ appcache_host ? appcache_host->host_id() : appcache::kNoHostId,
routing_id());
// A simple data source that keeps all data in memory.