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

Unified Diff: third_party/WebKit/Source/core/timing/Performance.h

Issue 2343553005: enable / disable Long Task instrumentation based on presence of LongTask observer (Closed)
Patch Set: address review comments Created 4 years, 3 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/timing/Performance.h
diff --git a/third_party/WebKit/Source/core/timing/Performance.h b/third_party/WebKit/Source/core/timing/Performance.h
index d67b71486f6e964ae42deeeb808a7855b56cc77f..c44b5db8dea4032910cc5ce6421d7a0b11433cd1 100644
--- a/third_party/WebKit/Source/core/timing/Performance.h
+++ b/third_party/WebKit/Source/core/timing/Performance.h
@@ -41,9 +41,12 @@
namespace blink {
+class InspectorWebPerfAgent;
+
class CORE_EXPORT Performance final : public PerformanceBase, public DOMWindowProperty {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(Performance);
+ friend class PerformanceTest;
public:
static Performance* create(LocalFrame* frame)
{
@@ -57,6 +60,8 @@ public:
PerformanceNavigation* navigation() const;
PerformanceTiming* timing() const override;
+ void updateLongTaskInstrumentation() override;
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -64,6 +69,7 @@ private:
mutable Member<PerformanceNavigation> m_navigation;
mutable Member<PerformanceTiming> m_timing;
+ mutable Member<InspectorWebPerfAgent> m_longTaskInspectorAgent;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698