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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2449673002: Refactor InspectorWebPerfAgent: update lifecycle management to be per Local Frame root; replace hea… (Closed)
Patch Set: sync and rebase Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 34d1eac94db71c280aa8bed481dcbfb8189c741f..e6bdd6d005a5c9f84b1f15a854ad4432454b544b 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -59,17 +59,20 @@ class FrameConsole;
class FrameSelection;
class FrameView;
class InputMethodController;
+class InspectorWebPerfAgent;
+class InstrumentingAgents;
class InterfaceProvider;
class InterfaceRegistry;
class IntPoint;
class IntSize;
-class InstrumentingAgents;
+class JSONObject;
class LayoutView;
class LayoutViewItem;
class LocalDOMWindow;
class NavigationScheduler;
class Node;
class NodeTraversal;
+class Performance;
template <typename Strategy>
class PositionWithAffinityTemplate;
class PluginData;
@@ -84,6 +87,8 @@ class CORE_EXPORT LocalFrame final : public Frame,
public Supplementable<LocalFrame> {
USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
+ friend class LocalFrameTest;
+
public:
static LocalFrame* create(FrameLoaderClient*,
FrameHost*,
@@ -161,6 +166,9 @@ class CORE_EXPORT LocalFrame final : public Frame,
return m_instrumentingAgents.get();
}
+ void enableInspectorWebPerfAgent(Performance*);
+ void disableInspectorWebPerfAgent(Performance*);
+
// =========================================================================
// All public functions below this point are candidates to move out of
// LocalFrame into another class.
@@ -264,6 +272,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
bool m_inViewSourceMode;
Member<InstrumentingAgents> m_instrumentingAgents;
+ Member<InspectorWebPerfAgent> m_inspectorWebPerfAgent;
InterfaceProvider* const m_interfaceProvider;
InterfaceRegistry* const m_interfaceRegistry;

Powered by Google App Engine
This is Rietveld 408576698