Index: webkit/appcache/appcache.cc |
=================================================================== |
--- webkit/appcache/appcache.cc (revision 91517) |
+++ webkit/appcache/appcache.cc (working copy) |
@@ -231,6 +231,23 @@ |
return NULL; |
} |
+void AppCache::ToResourceInfoVector(AppCacheResourceInfoVector* infos) const { |
+ DCHECK(infos && infos->empty()); |
+ for (EntryMap::const_iterator iter = entries_.begin(); |
+ iter != entries_.end(); ++iter) { |
+ infos->push_back(AppCacheResourceInfo()); |
+ AppCacheResourceInfo& info = infos->back(); |
+ info.url = iter->first; |
+ info.is_master = iter->second.IsMaster(); |
+ info.is_manifest = iter->second.IsManifest(); |
+ info.is_fallback = iter->second.IsFallback(); |
+ info.is_foreign = iter->second.IsForeign(); |
+ info.is_explicit = iter->second.IsExplicit(); |
+ info.size = iter->second.response_size(); |
+ info.response_id = iter->second.response_id(); |
+ } |
+} |
+ |
// static |
bool AppCache::IsInNetworkNamespace( |
const GURL& url, |