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

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
« no previous file with comments | « webkit/appcache/appcache.cc ('k') | webkit/appcache/appcache_interfaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_host.cc
===================================================================
--- webkit/appcache/appcache_host.cc (revision 91517)
+++ webkit/appcache/appcache_host.cc (working copy)
@@ -278,22 +278,9 @@
}
void AppCacheHost::GetResourceList(
- std::vector<AppCacheResourceInfo>* resource_infos) {
- 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);
- }
- }
+ AppCacheResourceInfoVector* resource_infos) {
+ if (associated_cache_.get() && associated_cache_->is_complete())
+ associated_cache_->ToResourceInfoVector(resource_infos);
}
Status AppCacheHost::GetStatus() {
« no previous file with comments | « webkit/appcache/appcache.cc ('k') | webkit/appcache/appcache_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698