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

Unified Diff: webkit/appcache/appcache.cc

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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.cc
===================================================================
--- webkit/appcache/appcache.cc (revision 53710)
+++ webkit/appcache/appcache.cc (working copy)
@@ -21,6 +21,7 @@
owning_group_(NULL),
online_whitelist_all_(false),
is_complete_(false),
+ cache_size_(0),
service_(service) {
service_->storage()->working_set()->AddCache(this);
}
@@ -51,7 +52,8 @@
// Entry already exists. Merge the types of the new and existing entries.
if (!ret.second)
ret.first->second.add_types(entry.types());
-
+ else
+ cache_size_ += entry.response_size(); // New entry. Add to cache size.
return ret.second;
}
@@ -61,12 +63,10 @@
}
namespace {
-
bool SortByLength(
const FallbackNamespace& lhs, const FallbackNamespace& rhs) {
return lhs.first.spec().length() > rhs.first.spec().length();
}
-
}
void AppCache::InitializeWithManifest(Manifest* manifest) {
@@ -162,7 +162,6 @@
}
}
-
bool AppCache::FindResponseForRequest(const GURL& url,
AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry,
GURL* found_fallback_namespace, bool* found_network_namespace) {

Powered by Google App Engine
This is Rietveld 408576698