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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1924173002: [DevTools] Improve performance of InstrumentingAgents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 7 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, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 12 matching lines...) Expand all
23 * 23 *
24 * You should have received a copy of the GNU Library General Public License 24 * You should have received a copy of the GNU Library General Public License
25 * along with this library; see the file COPYING.LIB. If not, write to 25 * along with this library; see the file COPYING.LIB. If not, write to
26 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 26 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27 * Boston, MA 02110-1301, USA. 27 * Boston, MA 02110-1301, USA.
28 */ 28 */
29 29
30 #include "core/frame/LocalFrame.h" 30 #include "core/frame/LocalFrame.h"
31 31
32 #include "bindings/core/v8/ScriptController.h" 32 #include "bindings/core/v8/ScriptController.h"
33 #include "core/InstrumentingAgents.h"
33 #include "core/dom/DocumentType.h" 34 #include "core/dom/DocumentType.h"
34 #include "core/dom/StyleChangeReason.h" 35 #include "core/dom/StyleChangeReason.h"
35 #include "core/editing/EditingUtilities.h" 36 #include "core/editing/EditingUtilities.h"
36 #include "core/editing/Editor.h" 37 #include "core/editing/Editor.h"
37 #include "core/editing/FrameSelection.h" 38 #include "core/editing/FrameSelection.h"
38 #include "core/editing/InputMethodController.h" 39 #include "core/editing/InputMethodController.h"
39 #include "core/editing/serializers/Serialization.h" 40 #include "core/editing/serializers/Serialization.h"
40 #include "core/editing/spellcheck/SpellChecker.h" 41 #include "core/editing/spellcheck/SpellChecker.h"
41 #include "core/events/Event.h" 42 #include "core/events/Event.h"
42 #include "core/fetch/ResourceFetcher.h" 43 #include "core/fetch/ResourceFetcher.h"
43 #include "core/frame/EventHandlerRegistry.h" 44 #include "core/frame/EventHandlerRegistry.h"
44 #include "core/frame/FrameConsole.h" 45 #include "core/frame/FrameConsole.h"
45 #include "core/frame/FrameHost.h" 46 #include "core/frame/FrameHost.h"
46 #include "core/frame/FrameView.h" 47 #include "core/frame/FrameView.h"
47 #include "core/frame/LocalDOMWindow.h" 48 #include "core/frame/LocalDOMWindow.h"
48 #include "core/frame/Settings.h" 49 #include "core/frame/Settings.h"
49 #include "core/html/HTMLFrameElementBase.h" 50 #include "core/html/HTMLFrameElementBase.h"
50 #include "core/html/HTMLPlugInElement.h" 51 #include "core/html/HTMLPlugInElement.h"
51 #include "core/input/EventHandler.h" 52 #include "core/input/EventHandler.h"
52 #include "core/inspector/ConsoleMessageStorage.h" 53 #include "core/inspector/ConsoleMessageStorage.h"
53 #include "core/inspector/InspectorInstrumentation.h" 54 #include "core/inspector/InspectorInstrumentation.h"
54 #include "core/inspector/InspectorSession.h"
55 #include "core/layout/HitTestResult.h" 55 #include "core/layout/HitTestResult.h"
56 #include "core/layout/LayoutView.h" 56 #include "core/layout/LayoutView.h"
57 #include "core/layout/api/LayoutViewItem.h" 57 #include "core/layout/api/LayoutViewItem.h"
58 #include "core/layout/compositing/PaintLayerCompositor.h" 58 #include "core/layout/compositing/PaintLayerCompositor.h"
59 #include "core/loader/FrameLoadRequest.h" 59 #include "core/loader/FrameLoadRequest.h"
60 #include "core/loader/FrameLoaderClient.h" 60 #include "core/loader/FrameLoaderClient.h"
61 #include "core/loader/NavigationScheduler.h" 61 #include "core/loader/NavigationScheduler.h"
62 #include "core/page/ChromeClient.h" 62 #include "core/page/ChromeClient.h"
63 #include "core/page/FocusController.h" 63 #include "core/page/FocusController.h"
64 #include "core/page/Page.h" 64 #include "core/page/Page.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 LocalFrame::~LocalFrame() 234 LocalFrame::~LocalFrame()
235 { 235 {
236 // Verify that the FrameView has been cleared as part of detaching 236 // Verify that the FrameView has been cleared as part of detaching
237 // the frame owner. 237 // the frame owner.
238 ASSERT(!m_view); 238 ASSERT(!m_view);
239 } 239 }
240 240
241 DEFINE_TRACE(LocalFrame) 241 DEFINE_TRACE(LocalFrame)
242 { 242 {
243 visitor->trace(m_instrumentingSessions); 243 visitor->trace(m_instrumentingAgents);
244 visitor->trace(m_loader); 244 visitor->trace(m_loader);
245 visitor->trace(m_navigationScheduler); 245 visitor->trace(m_navigationScheduler);
246 visitor->trace(m_view); 246 visitor->trace(m_view);
247 visitor->trace(m_domWindow); 247 visitor->trace(m_domWindow);
248 visitor->trace(m_pagePopupOwner); 248 visitor->trace(m_pagePopupOwner);
249 visitor->trace(m_script); 249 visitor->trace(m_script);
250 visitor->trace(m_editor); 250 visitor->trace(m_editor);
251 visitor->trace(m_spellChecker); 251 visitor->trace(m_spellChecker);
252 visitor->trace(m_selection); 252 visitor->trace(m_selection);
253 visitor->trace(m_eventHandler); 253 visitor->trace(m_eventHandler);
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 , m_eventHandler(new EventHandler(this)) 779 , m_eventHandler(new EventHandler(this))
780 , m_console(FrameConsole::create(*this)) 780 , m_console(FrameConsole::create(*this))
781 , m_inputMethodController(InputMethodController::create(*this)) 781 , m_inputMethodController(InputMethodController::create(*this))
782 , m_navigationDisableCount(0) 782 , m_navigationDisableCount(0)
783 , m_pageZoomFactor(parentPageZoomFactor(this)) 783 , m_pageZoomFactor(parentPageZoomFactor(this))
784 , m_textZoomFactor(parentTextZoomFactor(this)) 784 , m_textZoomFactor(parentTextZoomFactor(this))
785 , m_inViewSourceMode(false) 785 , m_inViewSourceMode(false)
786 , m_serviceRegistry(serviceRegistry) 786 , m_serviceRegistry(serviceRegistry)
787 { 787 {
788 if (isLocalRoot()) 788 if (isLocalRoot())
789 m_instrumentingSessions = new InstrumentingSessions(); 789 m_instrumentingAgents = new InstrumentingAgents();
790 else 790 else
791 m_instrumentingSessions = localFrameRoot()->m_instrumentingSessions; 791 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents;
792 } 792 }
793 793
794 WebFrameScheduler* LocalFrame::frameScheduler() 794 WebFrameScheduler* LocalFrame::frameScheduler()
795 { 795 {
796 if (!m_frameScheduler.get()) 796 if (!m_frameScheduler.get())
797 m_frameScheduler = page()->chromeClient().createFrameScheduler(client()- >frameBlameContext()); 797 m_frameScheduler = page()->chromeClient().createFrameScheduler(client()- >frameBlameContext());
798 798
799 ASSERT(m_frameScheduler.get()); 799 ASSERT(m_frameScheduler.get());
800 return m_frameScheduler.get(); 800 return m_frameScheduler.get();
801 } 801 }
(...skipping 12 matching lines...) Expand all
814 { 814 {
815 m_frame->disableNavigation(); 815 m_frame->disableNavigation();
816 } 816 }
817 817
818 FrameNavigationDisabler::~FrameNavigationDisabler() 818 FrameNavigationDisabler::~FrameNavigationDisabler()
819 { 819 {
820 m_frame->enableNavigation(); 820 m_frame->enableNavigation();
821 } 821 }
822 822
823 } // namespace blink 823 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698