Chromium Code Reviews| 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; |
| }; |