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

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: Created 5 years, 7 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..ea65d68217e5b73c3a4376efb842a7575638a6b8 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();
+ WorkerPerformance(WorkerGlobalScope*);
kinuko 2015/06/04 08:21:23 nit: explicit
Kunihiko Sakamoto 2015/06/05 03:43:56 Done.
Member<MemoryInfo> m_memoryInfo;
};

Powered by Google App Engine
This is Rietveld 408576698