Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / WebCache.cpp
index dad1210..68fe3ef 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "core/fetch/MemoryCache.h"
 
-using WebCore::MemoryCache;
+using blink::MemoryCache;
 
 namespace blink {
 
@@ -51,14 +51,14 @@ static void ToResourceTypeStat(const MemoryCache::TypeStatistic& from,
 void WebCache::setCapacities(
     size_t minDeadCapacity, size_t maxDeadCapacity, size_t capacity)
 {
-    MemoryCache* cache = WebCore::memoryCache();
+    MemoryCache* cache = blink::memoryCache();
     if (cache)
         cache->setCapacities(static_cast<unsigned>(minDeadCapacity), static_cast<unsigned>(maxDeadCapacity), static_cast<unsigned>(capacity));
 }
 
 void WebCache::clear()
 {
-    MemoryCache* cache = WebCore::memoryCache();
+    MemoryCache* cache = blink::memoryCache();
     if (cache)
         cache->evictResources();
 }
@@ -67,7 +67,7 @@ void WebCache::getUsageStats(UsageStats* result)
 {
     ASSERT(result);
 
-    MemoryCache* cache = WebCore::memoryCache();
+    MemoryCache* cache = blink::memoryCache();
     if (cache) {
         result->minDeadCapacity = cache->minDeadCapacity();
         result->maxDeadCapacity = cache->maxDeadCapacity();
@@ -80,7 +80,7 @@ void WebCache::getUsageStats(UsageStats* result)
 
 void WebCache::getResourceTypeStats(ResourceTypeStats* result)
 {
-    MemoryCache* cache = WebCore::memoryCache();
+    MemoryCache* cache = blink::memoryCache();
     if (cache) {
         MemoryCache::Statistics stats = cache->getStatistics();
         ToResourceTypeStat(stats.images, result->images);