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

Unified Diff: Source/core/timing/MemoryInfo.cpp

Issue 26848007: Move Navigation Timing and other various window-level objects out of page/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/timing/MemoryInfo.h ('k') | Source/core/timing/MemoryInfo.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/MemoryInfo.cpp
diff --git a/Source/core/page/MemoryInfo.cpp b/Source/core/timing/MemoryInfo.cpp
similarity index 97%
rename from Source/core/page/MemoryInfo.cpp
rename to Source/core/timing/MemoryInfo.cpp
index b3ec36ad5382c250e8b9a7faffce0dce035f046a..0e270aefd1ebe56516de16c8fbde334c87d8ec57 100644
--- a/Source/core/page/MemoryInfo.cpp
+++ b/Source/core/timing/MemoryInfo.cpp
@@ -29,7 +29,7 @@
*/
#include "config.h"
-#include "core/page/MemoryInfo.h"
+#include "core/timing/MemoryInfo.h"
#include <limits>
#include "bindings/v8/ScriptGCEvent.h"
@@ -110,9 +110,9 @@ size_t quantizeMemorySize(size_t size)
sizeOfNextBucket *= scalingFactor;
if (sizeOfNextBucket >= nextPowerOfTen) {
- if (std::numeric_limits<size_t>::max() / 10 <= nextPowerOfTen)
+ if (std::numeric_limits<size_t>::max() / 10 <= nextPowerOfTen) {
nextPowerOfTen = std::numeric_limits<size_t>::max();
- else {
+ } else {
nextPowerOfTen *= 10;
granularity *= 10;
}
@@ -139,9 +139,9 @@ MemoryInfo::MemoryInfo(Frame* frame)
if (!frame || !frame->settings())
return;
- if (frame->settings()->memoryInfoEnabled())
+ if (frame->settings()->memoryInfoEnabled()) {
ScriptGCEvent::getHeapSize(m_info);
- else {
+ } else {
DEFINE_STATIC_LOCAL(HeapSizeCache, heapSizeCache, ());
heapSizeCache.getCachedHeapSize(m_info);
}
« no previous file with comments | « Source/core/timing/MemoryInfo.h ('k') | Source/core/timing/MemoryInfo.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698