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

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

Issue 2553033004: Remove ContextLifecycleObserver from WorkerPerformance (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/timing/WorkerPerformance.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/timing/WorkerPerformance.h
diff --git a/third_party/WebKit/Source/core/timing/WorkerPerformance.h b/third_party/WebKit/Source/core/timing/WorkerPerformance.h
index e7b3cc1ea6611899ab56e4ae88a07010fbb84a99..75d3976c66b48f50c4822355496a6590985886d3 100644
--- a/third_party/WebKit/Source/core/timing/WorkerPerformance.h
+++ b/third_party/WebKit/Source/core/timing/WorkerPerformance.h
@@ -32,7 +32,6 @@
#define WorkerPerformance_h
#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"
@@ -43,17 +42,17 @@ class ExecutionContext;
class MemoryInfo;
class WorkerGlobalScope;
-class WorkerPerformance final : public PerformanceBase,
- public ContextLifecycleObserver {
+class WorkerPerformance final : public PerformanceBase {
DEFINE_WRAPPERTYPEINFO();
- USING_GARBAGE_COLLECTED_MIXIN(WorkerPerformance);
public:
static WorkerPerformance* create(WorkerGlobalScope* context) {
return new WorkerPerformance(context);
}
- ExecutionContext* getExecutionContext() const override;
+ ExecutionContext* getExecutionContext() const override {
+ return m_executionContext;
+ }
MemoryInfo* memory();
@@ -61,6 +60,8 @@ class WorkerPerformance final : public PerformanceBase,
private:
explicit WorkerPerformance(WorkerGlobalScope*);
+
+ Member<ExecutionContext> m_executionContext;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/timing/WorkerPerformance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698