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

Side by Side Diff: third_party/WebKit/Source/core/fetch/MemoryCache.cpp

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 , m_maxDeferredPruneDeadCapacity(cDeferredPruneDeadCapacityFactor * cDefault CacheCapacity) 100 , m_maxDeferredPruneDeadCapacity(cDeferredPruneDeadCapacityFactor * cDefault CacheCapacity)
101 , m_delayBeforeLiveDecodedPrune(cMinDelayBeforeLiveDecodedPrune) 101 , m_delayBeforeLiveDecodedPrune(cMinDelayBeforeLiveDecodedPrune)
102 , m_liveSize(0) 102 , m_liveSize(0)
103 , m_deadSize(0) 103 , m_deadSize(0)
104 #ifdef MEMORY_CACHE_STATS 104 #ifdef MEMORY_CACHE_STATS
105 , m_statsTimer(this, &MemoryCache::dumpStats) 105 , m_statsTimer(this, &MemoryCache::dumpStats)
106 #endif 106 #endif
107 { 107 {
108 #ifdef MEMORY_CACHE_STATS 108 #ifdef MEMORY_CACHE_STATS
109 const double statsIntervalInSeconds = 15; 109 const double statsIntervalInSeconds = 15;
110 m_statsTimer.startRepeating(statsIntervalInSeconds, FROM_HERE); 110 m_statsTimer.startRepeating(statsIntervalInSeconds, BLINK_FROM_HERE);
111 #endif 111 #endif
112 } 112 }
113 113
114 MemoryCache* MemoryCache::create() 114 MemoryCache* MemoryCache::create()
115 { 115 {
116 return new MemoryCache; 116 return new MemoryCache;
117 } 117 }
118 118
119 MemoryCache::~MemoryCache() 119 MemoryCache::~MemoryCache()
120 { 120 {
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 printf("(%.1fK, %.1fK, %uA, %dR, %d, %d); ", currentResource->de codedSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overhe adSize()) / 1024.0f, current->m_accessCount, currentResource->hasClients(), curr entResource->isPurgeable(), currentResource->wasPurged()); 834 printf("(%.1fK, %.1fK, %uA, %dR, %d, %d); ", currentResource->de codedSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overhe adSize()) / 1024.0f, current->m_accessCount, currentResource->hasClients(), curr entResource->isPurgeable(), currentResource->wasPurged());
835 835
836 current = current->m_previousInAllResourcesList; 836 current = current->m_previousInAllResourcesList;
837 } 837 }
838 } 838 }
839 } 839 }
840 840
841 #endif // MEMORY_CACHE_STATS 841 #endif // MEMORY_CACHE_STATS
842 842
843 } // namespace blink 843 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FontResource.cpp ('k') | third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698