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

Unified Diff: Source/web/WebCache.cpp

Issue 468083003: Cleanup namespace usage in Source/web/Web[A-H]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing Created 6 years, 4 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 | « Source/web/WebBlob.cpp ('k') | Source/web/WebCachedURLRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebCache.cpp
diff --git a/Source/web/WebCache.cpp b/Source/web/WebCache.cpp
index 68fe3ef5fcc69950fd6f81cd9c19fee883915ac0..3bf355c4e4825dc94ce955a696bb58cdbb0c6bfe 100644
--- a/Source/web/WebCache.cpp
+++ b/Source/web/WebCache.cpp
@@ -33,8 +33,6 @@
#include "core/fetch/MemoryCache.h"
-using blink::MemoryCache;
-
namespace blink {
// A helper method for coverting a MemoryCache::TypeStatistic to a
@@ -51,14 +49,14 @@ static void ToResourceTypeStat(const MemoryCache::TypeStatistic& from,
void WebCache::setCapacities(
size_t minDeadCapacity, size_t maxDeadCapacity, size_t capacity)
{
- MemoryCache* cache = blink::memoryCache();
+ MemoryCache* cache = memoryCache();
if (cache)
cache->setCapacities(static_cast<unsigned>(minDeadCapacity), static_cast<unsigned>(maxDeadCapacity), static_cast<unsigned>(capacity));
}
void WebCache::clear()
{
- MemoryCache* cache = blink::memoryCache();
+ MemoryCache* cache = memoryCache();
if (cache)
cache->evictResources();
}
@@ -67,7 +65,7 @@ void WebCache::getUsageStats(UsageStats* result)
{
ASSERT(result);
- MemoryCache* cache = blink::memoryCache();
+ MemoryCache* cache = memoryCache();
if (cache) {
result->minDeadCapacity = cache->minDeadCapacity();
result->maxDeadCapacity = cache->maxDeadCapacity();
@@ -80,7 +78,7 @@ void WebCache::getUsageStats(UsageStats* result)
void WebCache::getResourceTypeStats(ResourceTypeStats* result)
{
- MemoryCache* cache = blink::memoryCache();
+ MemoryCache* cache = memoryCache();
if (cache) {
MemoryCache::Statistics stats = cache->getStatistics();
ToResourceTypeStat(stats.images, result->images);
« no previous file with comments | « Source/web/WebBlob.cpp ('k') | Source/web/WebCachedURLRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698