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

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.cpp

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 years, 10 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: third_party/WebKit/Source/core/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
index 6edb7ce376810af497878e678eda2a6bf58660fe..a682096991f34fdd93e3a8a11a56b5033cfac0f3 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
@@ -607,7 +607,7 @@ MemoryCache::Statistics MemoryCache::getStatistics()
for (const auto& resourceMapIter : m_resourceMaps) {
for (const auto& resourceIter : *resourceMapIter.value) {
Resource* resource = resourceIter.value->m_resource.get();
- switch (resource->type()) {
+ switch (resource->getType()) {
case Resource::Image:
stats.images.addResource(resource);
break;
@@ -689,7 +689,7 @@ void MemoryCache::prune(Resource* justReleasedResource)
// while a prune is pending.
// Main Resources in the cache are only substitue data that was
// precached and should not be evicted.
- if (justReleasedResource->type() != Resource::MainResource) {
+ if (justReleasedResource->getType() != Resource::MainResource) {
if (MemoryCacheEntry* entry = getEntryForResource(justReleasedResource))
evict(entry);
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp ('k') | third_party/WebKit/Source/core/fetch/RawResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698