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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp

Issue 2845513002: [WIP] Add Resource::IsShareable
Patch Set: fix Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/platform/loader/fetch/MemoryCacheCorrectnessTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp b/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
index 2136580d1d708d336f0fea0e7406b9cb5e6b8f3e..15b75438669e0b167cdc31a03a368de9c68b351e 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
@@ -132,6 +132,8 @@ MemoryCache::ResourceMap* MemoryCache::EnsureResourceMap(
void MemoryCache::Add(Resource* resource) {
DCHECK(resource);
+ DCHECK(resource->IsShareable());
+
ResourceMap* resources = EnsureResourceMap(resource->CacheIdentifier());
AddInternal(resources, MemoryCacheEntry::Create(resource));
RESOURCE_LOADING_DVLOG(1)
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/loader/fetch/MemoryCacheCorrectnessTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698