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/appcache_response.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/appcache_response.cc')
-rw-r--r-- | webkit/appcache/appcache_response.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_response.cc b/webkit/appcache/appcache_response.cc index f9af38e..68b7f09 100644 --- a/webkit/appcache/appcache_response.cc +++ b/webkit/appcache/appcache_response.cc @@ -179,6 +179,12 @@ void AppCacheResponseReader::ReadData(net::IOBuffer* buf, int buf_len, buf, buf_len); } +int AppCacheResponseReader::GetResourceSize() { + if (!OpenEntryIfNeeded()) + return -1; + return entry_->GetDataSize(kResponseContentIndex); +} + void AppCacheResponseReader::SetReadRange(int offset, int length) { DCHECK(!IsReadPending() && !read_position_); range_offset_ = offset; |