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

Unified Diff: Source/modules/performance/WorkerPerformance.h

Issue 1100813004: Offer User Timing in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 6 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: Source/modules/performance/WorkerPerformance.h
diff --git a/Source/modules/performance/WorkerPerformance.h b/Source/modules/performance/WorkerPerformance.h
index f9673c052a087dbc7c8ba0febc8aa0af7647e151..6ea0e4e114084f6bbb02cfb2ffde2dd162c101c3 100644
--- a/Source/modules/performance/WorkerPerformance.h
+++ b/Source/modules/performance/WorkerPerformance.h
@@ -33,6 +33,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/ContextLifecycleObserver.h"
+#include "core/timing/PerformanceBase.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -40,22 +41,24 @@ namespace blink {
class ExecutionContext;
class MemoryInfo;
+class WorkerGlobalScope;
-class WorkerPerformance final : public GarbageCollected<WorkerPerformance>, public ScriptWrappable {
+class WorkerPerformance final : public PerformanceBase, public ContextLifecycleObserver {
DEFINE_WRAPPERTYPEINFO();
public:
- static WorkerPerformance* create()
+ static WorkerPerformance* create(WorkerGlobalScope* context)
{
- return new WorkerPerformance();
+ return new WorkerPerformance(context);
}
- double now(ExecutionContext*) const;
+ virtual ExecutionContext* executionContext() const override;
+
MemoryInfo* memory();
- DECLARE_TRACE();
+ DECLARE_VIRTUAL_TRACE();
private:
- WorkerPerformance();
+ explicit WorkerPerformance(WorkerGlobalScope*);
Member<MemoryInfo> m_memoryInfo;
};
« no previous file with comments | « Source/modules/performance/WorkerGlobalScopePerformance.cpp ('k') | Source/modules/performance/WorkerPerformance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698