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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h

Issue 2555873004: Remove ContextLifecycleObserver from ScriptPromisePropertyBase (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
Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
index ef03a45b31bb914664a089bd21855a80f46bbf62..379dcc2de8fcff6c079a3436e6b9f7595f8c24df 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
@@ -9,7 +9,6 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseProperties.h"
#include "core/CoreExport.h"
-#include "core/dom/ContextLifecycleObserver.h"
#include "wtf/Compiler.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
@@ -24,10 +23,7 @@ class ScriptState;
// TODO(yhirano): Remove NEVER_INLINE once we find the cause of crashes.
class CORE_EXPORT ScriptPromisePropertyBase
- : public GarbageCollectedFinalized<ScriptPromisePropertyBase>,
- public ContextLifecycleObserver {
- USING_GARBAGE_COLLECTED_MIXIN(ScriptPromisePropertyBase);
-
+ : public GarbageCollectedFinalized<ScriptPromisePropertyBase> {
public:
virtual ~ScriptPromisePropertyBase();
@@ -43,7 +39,7 @@ class CORE_EXPORT ScriptPromisePropertyBase
Rejected,
};
State getState() const { return m_state; }
-
+ ExecutionContext* getExecutionContext() const;
ScriptPromise promise(DOMWrapperWorld&);
DECLARE_VIRTUAL_TRACE();
@@ -85,6 +81,7 @@ class CORE_EXPORT ScriptPromisePropertyBase
v8::Local<v8::String> promiseName();
v8::Local<v8::String> resolverName();
+ Member<ExecutionContext> m_executionContext;
v8::Isolate* m_isolate;
Name m_name;
State m_state;

Powered by Google App Engine
This is Rietveld 408576698