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

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

Issue 2484213003: Convert performance monitor to the subscription model. (Closed)
Patch Set: core export 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/timing/Performance.h
diff --git a/third_party/WebKit/Source/core/timing/Performance.h b/third_party/WebKit/Source/core/timing/Performance.h
index ea5579d589e896fe18300674efdb97df2e7d666e..95bc1fb07652a56e43d13072d7bad3f19417b55d 100644
--- a/third_party/WebKit/Source/core/timing/Performance.h
+++ b/third_party/WebKit/Source/core/timing/Performance.h
@@ -34,6 +34,7 @@
#include "core/CoreExport.h"
#include "core/frame/DOMWindowProperty.h"
+#include "core/frame/PerformanceMonitor.h"
#include "core/timing/MemoryInfo.h"
#include "core/timing/PerformanceBase.h"
#include "core/timing/PerformanceNavigation.h"
@@ -45,7 +46,8 @@ class ScriptState;
class ScriptValue;
class CORE_EXPORT Performance final : public PerformanceBase,
- public DOMWindowProperty {
+ public DOMWindowProperty,
+ public PerformanceMonitor::Client {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(Performance);
friend class PerformanceTest;
@@ -74,6 +76,15 @@ class CORE_EXPORT Performance final : public PerformanceBase,
// DOMWindowProperty overrides.
void frameDestroyed() override;
+ static std::pair<String, DOMWindow*> sanitizedAttribution(
+ const HeapHashSet<Member<Frame>>& frames,
+ Frame* observerFrame);
+
+ // PerformanceMonitor::Client implementation.
+ void reportLongTask(double startTime,
+ double endTime,
+ const HeapHashSet<Member<Frame>>& contextFrames) override;
+
mutable Member<PerformanceNavigation> m_navigation;
mutable Member<PerformanceTiming> m_timing;
};
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | third_party/WebKit/Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698