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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.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/inspector/InspectorWebPerfAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h b/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
index 549ca161193cfc4c4e28ffdd095d181163c01278..727c9c69c8735c135e91e61cdfde79d357874a3b 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h
@@ -28,12 +28,13 @@ class CORE_EXPORT InspectorWebPerfAgent final
friend class InspectorWebPerfAgentTest;
public:
- explicit InspectorWebPerfAgent(LocalFrame*);
+ explicit InspectorWebPerfAgent(InspectedFrames*);
~InspectorWebPerfAgent();
DECLARE_VIRTUAL_TRACE();
void enable();
void disable();
+ bool isEnabled();
void willExecuteScript(ExecutionContext*);
void didExecuteScript();
@@ -50,11 +51,11 @@ class CORE_EXPORT InspectorWebPerfAgent final
private:
bool m_enabled;
std::pair<String, DOMWindow*> sanitizedAttribution(
- const HeapHashSet<Member<Location>>& frameContextLocations,
+ const HeapHashSet<Member<Frame>>& frameContexts,
Frame* observerFrame);
- Member<LocalFrame> m_localFrame;
- HeapHashSet<Member<Location>> m_frameContextLocations;
+ Member<InspectedFrames> m_inspectedFrames;
+ HeapHashSet<Member<Frame>> m_frameContexts;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698