Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: webkit/appcache/appcache_host.cc

Issue 7326023: about://appcache-internals enhancements (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/appcache/appcache_host.cc
===================================================================
--- webkit/appcache/appcache_host.cc (revision 91517)
+++ webkit/appcache/appcache_host.cc (working copy)
@@ -279,21 +279,8 @@
void AppCacheHost::GetResourceList(
std::vector<AppCacheResourceInfo>* resource_infos) {
rvargas (doing something else) 2011/07/11 22:34:07 nit: use AppCacheResourceInfoVector here?
michaeln 2011/07/12 23:35:26 Done.
- if (associated_cache_.get() && associated_cache_->is_complete()) {
- for (AppCache::EntryMap::const_iterator it =
- associated_cache_->entries().begin();
- it != associated_cache_->entries().end(); ++it) {
- AppCacheResourceInfo info;
- info.url = it->first;
- info.is_master = it->second.IsMaster();
- info.is_manifest = it->second.IsManifest();
- info.is_fallback = it->second.IsFallback();
- info.is_foreign = it->second.IsForeign();
- info.is_explicit = it->second.IsExplicit();
- info.size = it->second.response_size();
- resource_infos->push_back(info);
- }
- }
+ if (associated_cache_.get() && associated_cache_->is_complete())
+ associated_cache_->ToResourceInfoVector(resource_infos);
}
Status AppCacheHost::GetStatus() {

Powered by Google App Engine
This is Rietveld 408576698