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

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

Issue 2238883005: POC for InspectorInstrumentation adding InspectorWebPerfAgent Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add task observer to WebPerfAgent Created 4 years, 4 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-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class NavigationScheduler; 70 class NavigationScheduler;
71 class Node; 71 class Node;
72 class NodeTraversal; 72 class NodeTraversal;
73 template <typename Strategy> class PositionWithAffinityTemplate; 73 template <typename Strategy> class PositionWithAffinityTemplate;
74 class PluginData; 74 class PluginData;
75 class Range; 75 class Range;
76 class ScriptController; 76 class ScriptController;
77 class SpellChecker; 77 class SpellChecker;
78 class WebFrameHostScheduler; 78 class WebFrameHostScheduler;
79 class WebFrameScheduler; 79 class WebFrameScheduler;
80 class InspectorWebPerfAgent;
80 81
81 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; 82 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>;
82 83
83 class CORE_EXPORT LocalFrame final : public Frame, public LocalFrameLifecycleNot ifier, public Supplementable<LocalFrame> { 84 class CORE_EXPORT LocalFrame final : public Frame, public LocalFrameLifecycleNot ifier, public Supplementable<LocalFrame> {
84 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); 85 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
85 public: 86 public:
86 static LocalFrame* create(FrameLoaderClient*, FrameHost*, FrameOwner*, Inter faceProvider* = nullptr); 87 static LocalFrame* create(FrameLoaderClient*, FrameHost*, FrameOwner*, Inter faceProvider* = nullptr);
87 88
88 void init(); 89 void init();
89 void setView(FrameView*); 90 void setView(FrameView*);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void scheduleVisualUpdateUnlessThrottled(); 179 void scheduleVisualUpdateUnlessThrottled();
179 180
180 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } 181 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; }
181 182
182 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } 183 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; }
183 184
184 FrameLoaderClient* client() const; 185 FrameLoaderClient* client() const;
185 186
186 PluginData* pluginData() const; 187 PluginData* pluginData() const;
187 188
189 void enableWebPerfInspectorInstrumentation();
pfeldman 2016/08/17 21:12:11 We should enable it externally to achieve better l
190
188 private: 191 private:
189 friend class FrameNavigationDisabler; 192 friend class FrameNavigationDisabler;
190 193
191 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, InterfaceProvider*); 194 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, InterfaceProvider*);
192 195
193 // Internal Frame helper overrides: 196 // Internal Frame helper overrides:
194 WindowProxyManager* getWindowProxyManager() const override; 197 WindowProxyManager* getWindowProxyManager() const override;
195 // Intentionally private to prevent redundant checks when the type is 198 // Intentionally private to prevent redundant checks when the type is
196 // already LocalFrame. 199 // already LocalFrame.
197 bool isLocalFrame() const override { return true; } 200 bool isLocalFrame() const override { return true; }
(...skipping 21 matching lines...) Expand all
219 const Member<InputMethodController> m_inputMethodController; 222 const Member<InputMethodController> m_inputMethodController;
220 223
221 int m_navigationDisableCount; 224 int m_navigationDisableCount;
222 225
223 float m_pageZoomFactor; 226 float m_pageZoomFactor;
224 float m_textZoomFactor; 227 float m_textZoomFactor;
225 228
226 bool m_inViewSourceMode; 229 bool m_inViewSourceMode;
227 230
228 Member<InstrumentingAgents> m_instrumentingAgents; 231 Member<InstrumentingAgents> m_instrumentingAgents;
232 Member<InspectorWebPerfAgent> m_inspectorWebPerformanceAgent;
229 233
230 InterfaceProvider* const m_interfaceProvider; 234 InterfaceProvider* const m_interfaceProvider;
231 }; 235 };
232 236
233 inline void LocalFrame::init() 237 inline void LocalFrame::init()
234 { 238 {
235 m_loader.init(); 239 m_loader.init();
236 } 240 }
237 241
238 inline LocalDOMWindow* LocalFrame::localDOMWindow() const 242 inline LocalDOMWindow* LocalFrame::localDOMWindow() const
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 explicit ScopedFrameBlamer(LocalFrame*); 341 explicit ScopedFrameBlamer(LocalFrame*);
338 ~ScopedFrameBlamer(); 342 ~ScopedFrameBlamer();
339 343
340 private: 344 private:
341 Member<LocalFrame> m_frame; 345 Member<LocalFrame> m_frame;
342 }; 346 };
343 347
344 } // namespace blink 348 } // namespace blink
345 349
346 #endif // LocalFrame_h 350 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698