| 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) {
|
|
|