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

Unified Diff: webkit/appcache/appcache.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.h ('k') | webkit/appcache/appcache_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « webkit/appcache/appcache.h ('k') | webkit/appcache/appcache_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698