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

Unified Diff: webkit/appcache/appcache_working_set.cc

Issue 269062: AppCacheResponse storage implementation (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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_working_set.cc
===================================================================
--- webkit/appcache/appcache_working_set.cc (revision 29600)
+++ webkit/appcache/appcache_working_set.cc (working copy)
@@ -17,6 +17,7 @@
}
void AppCacheWorkingSet::AddCache(AppCache* cache) {
+ DCHECK(cache->cache_id() != kNoCacheId);
int64 cache_id = cache->cache_id();
DCHECK(caches_.find(cache_id) == caches_.end());
caches_.insert(CacheMap::value_type(cache_id, cache));
@@ -37,6 +38,7 @@
}
void AppCacheWorkingSet::AddResponseInfo(AppCacheResponseInfo* info) {
+ DCHECK(info->response_id() != kNoResponseId);
int64 response_id = info->response_id();
DCHECK(response_infos_.find(response_id) == response_infos_.end());
response_infos_.insert(ResponseInfoMap::value_type(response_id, info));

Powered by Google App Engine
This is Rietveld 408576698