diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-21 03:59:04 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-21 03:59:04 +0000 |
commit | 80f584d94f57afdfddeba1fa7384ed409cd91273 (patch) | |
tree | d6e51ebde489e245e98e56ca061c0dce78895d63 /webkit/appcache/web_application_cache_host_impl.cc | |
parent | 204e936d3b0455b0c55f2dc5713f8a84b55e0cbf (diff) | |
download | chromium_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 'webkit/appcache/web_application_cache_host_impl.cc')
-rw-r--r-- | webkit/appcache/web_application_cache_host_impl.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/webkit/appcache/web_application_cache_host_impl.cc b/webkit/appcache/web_application_cache_host_impl.cc index b6586de..8db6aa9 100644 --- a/webkit/appcache/web_application_cache_host_impl.cc +++ b/webkit/appcache/web_application_cache_host_impl.cc @@ -7,12 +7,16 @@ #include "base/compiler_specific.h" #include "base/id_map.h" #include "base/string_util.h" +#include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h" +#include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" using WebKit::WebApplicationCacheHost; using WebKit::WebApplicationCacheHostClient; +using WebKit::WebDataSource; +using WebKit::WebFrame; using WebKit::WebURLRequest; using WebKit::WebURL; using WebKit::WebURLResponse; @@ -25,6 +29,20 @@ WebApplicationCacheHostImpl* WebApplicationCacheHostImpl::FromId(int id) { return all_hosts.Lookup(id); } +WebApplicationCacheHostImpl* WebApplicationCacheHostImpl::FromFrame( + WebFrame* frame) { + if (!frame) + return NULL; + WebDataSource* data_source = frame->dataSource(); + if (!data_source) + return NULL; + return NULL; + // TODO(michaeln): Uncomment after the new webkit api is available, + // (see https://bugs.webkit.org/show_bug.cgi?id=33880) + // return static_cast<WebApplicationCacheHostImpl*> + // (data_source->applicationCacheHost()); +} + WebApplicationCacheHostImpl::WebApplicationCacheHostImpl( WebApplicationCacheHostClient* client, AppCacheBackend* backend) |