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

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: Created 4 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
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 0723873e66894f10540509984d738af6a46d700a..181de4627443ec00918e0a24b39361b1bbacb457 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -60,11 +60,12 @@ class FrameSelection;
class FrameView;
class HTMLPlugInElement;
class InputMethodController;
+class InspectorWebPerfAgent;
+class InstrumentingAgents;
class InterfaceProvider;
class InterfaceRegistry;
class IntPoint;
class IntSize;
-class InstrumentingAgents;
class JSONObject;
class LayoutView;
class LayoutViewItem;
@@ -163,6 +164,13 @@ class CORE_EXPORT LocalFrame final : public Frame,
return m_instrumentingAgents.get();
}
+ InspectorWebPerfAgent* inspectorWebPerfAgent() {
caseq 2016/10/26 21:19:41 Do we really need to expose it?
panicker 2016/10/28 00:09:24 Removed
+ return m_inspectorWebPerfAgent.get();
+ }
+
+ void enableInspectorWebPerfAgent();
+ void disableInspectorWebPerfAgent();
+
// =========================================================================
// All public functions below this point are candidates to move out of
// LocalFrame into another class.
@@ -266,6 +274,8 @@ class CORE_EXPORT LocalFrame final : public Frame,
bool m_inViewSourceMode;
Member<InstrumentingAgents> m_instrumentingAgents;
+ Member<InspectorWebPerfAgent> m_inspectorWebPerfAgent;
+ unsigned m_inspectorWebPerfAgentObservers;
InterfaceProvider* const m_interfaceProvider;
InterfaceRegistry* const m_interfaceRegistry;

Powered by Google App Engine
This is Rietveld 408576698