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

Side by Side Diff: Source/core/page/Page.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "SchemeRegistry.h" 71 #include "SchemeRegistry.h"
72 #include "ScriptController.h" 72 #include "ScriptController.h"
73 #include "ScrollingCoordinator.h" 73 #include "ScrollingCoordinator.h"
74 #include "Settings.h" 74 #include "Settings.h"
75 #include "SharedBuffer.h" 75 #include "SharedBuffer.h"
76 #include "StorageArea.h" 76 #include "StorageArea.h"
77 #include "StorageNamespace.h" 77 #include "StorageNamespace.h"
78 #include "TextResourceDecoder.h" 78 #include "TextResourceDecoder.h"
79 #include "VisitedLinkState.h" 79 #include "VisitedLinkState.h"
80 #include "VoidCallback.h" 80 #include "VoidCallback.h"
81 #include "WebCoreMemoryInstrumentation.h"
82 #include "Widget.h" 81 #include "Widget.h"
83 #include <wtf/HashMap.h> 82 #include <wtf/HashMap.h>
84 #include <wtf/RefCountedLeakCounter.h> 83 #include <wtf/RefCountedLeakCounter.h>
85 #include <wtf/StdLibExtras.h> 84 #include <wtf/StdLibExtras.h>
86 #include <wtf/text/Base64.h> 85 #include <wtf/text/Base64.h>
87 #include <wtf/text/StringHash.h> 86 #include <wtf/text/StringHash.h>
88 87
89 namespace WebCore { 88 namespace WebCore {
90 89
91 static HashSet<Page*>* allPages; 90 static HashSet<Page*>* allPages;
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 void Page::hiddenPageDOMTimerThrottlingStateChanged() 1164 void Page::hiddenPageDOMTimerThrottlingStateChanged()
1166 { 1165 {
1167 if (m_settings->hiddenPageDOMTimerThrottlingEnabled()) { 1166 if (m_settings->hiddenPageDOMTimerThrottlingEnabled()) {
1168 if (m_visibilityState == WebCore::PageVisibilityStateHidden) 1167 if (m_visibilityState == WebCore::PageVisibilityStateHidden)
1169 setTimerAlignmentInterval(Settings::hiddenPageDOMTimerAlignmentInter val()); 1168 setTimerAlignmentInterval(Settings::hiddenPageDOMTimerAlignmentInter val());
1170 } else 1169 } else
1171 setTimerAlignmentInterval(Settings::defaultDOMTimerAlignmentInterval()); 1170 setTimerAlignmentInterval(Settings::defaultDOMTimerAlignmentInterval());
1172 } 1171 }
1173 #endif 1172 #endif
1174 1173
1175 void Page::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
1176 {
1177 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Page);
1178 info.addMember(m_chrome, "chrome");
1179 info.addMember(m_dragCaretController, "dragCaretController");
1180
1181 info.addMember(m_dragController, "dragController");
1182 info.addMember(m_focusController, "focusController");
1183 info.addMember(m_contextMenuController, "contextMenuController");
1184 info.addMember(m_inspectorController, "inspectorController");
1185 info.addMember(m_pointerLockController, "pointerLockController");
1186 info.addMember(m_scrollingCoordinator, "scrollingCoordinator");
1187 info.addMember(m_settings, "settings");
1188 info.addMember(m_progress, "progress");
1189 info.addMember(m_backForwardController, "backForwardController");
1190 info.addMember(m_mainFrame, "mainFrame");
1191 info.addMember(m_pluginData, "pluginData");
1192 info.addMember(m_theme, "theme");
1193 info.addMember(m_UseCounter, "UseCounter");
1194 info.addMember(m_pagination, "pagination");
1195 info.addMember(m_userStyleSheet, "userStyleSheet");
1196 info.addMember(m_group, "group");
1197 info.addMember(m_sessionStorage, "sessionStorage");
1198 info.addMember(m_relevantUnpaintedRenderObjects, "relevantUnpaintedRenderObj ects");
1199 info.addMember(m_topRelevantPaintedRegion, "relevantPaintedRegion");
1200 info.addMember(m_bottomRelevantPaintedRegion, "relevantPaintedRegion");
1201 info.addMember(m_relevantUnpaintedRegion, "relevantUnpaintedRegion");
1202 info.addMember(m_seenPlugins, "seenPlugins");
1203 info.addMember(m_seenMediaEngines, "seenMediaEngines");
1204
1205 info.ignoreMember(m_alternativeTextClient);
1206 info.ignoreMember(m_editorClient);
1207 info.ignoreMember(m_plugInClient);
1208 info.ignoreMember(m_validationMessageClient);
1209 }
1210
1211 void Page::captionPreferencesChanged() 1174 void Page::captionPreferencesChanged()
1212 { 1175 {
1213 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) 1176 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( ))
1214 frame->document()->captionPreferencesChanged(); 1177 frame->document()->captionPreferencesChanged();
1215 } 1178 }
1216 1179
1217 Page::PageClients::PageClients() 1180 Page::PageClients::PageClients()
1218 : alternativeTextClient(0) 1181 : alternativeTextClient(0)
1219 , chromeClient(0) 1182 , chromeClient(0)
1220 , contextMenuClient(0) 1183 , contextMenuClient(0)
1221 , editorClient(0) 1184 , editorClient(0)
1222 , dragClient(0) 1185 , dragClient(0)
1223 , inspectorClient(0) 1186 , inspectorClient(0)
1224 , plugInClient(0) 1187 , plugInClient(0)
1225 { 1188 {
1226 } 1189 }
1227 1190
1228 Page::PageClients::~PageClients() 1191 Page::PageClients::~PageClients()
1229 { 1192 {
1230 } 1193 }
1231 1194
1232 } // namespace WebCore 1195 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698