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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.h

Issue 2583093002: Reduce SuspendableObjects (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/core/dom/MessagePort.h
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.h b/third_party/WebKit/Source/core/dom/MessagePort.h
index db58c671c008aeb68b561df5b586727d3a2661f9..da26cba1ddcc2959ddfc6457b76aab76f7ce1ddd 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.h
+++ b/third_party/WebKit/Source/core/dom/MessagePort.h
@@ -30,7 +30,7 @@
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "bindings/core/v8/SerializedScriptValue.h"
#include "core/CoreExport.h"
-#include "core/dom/SuspendableObject.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventListener.h"
#include "core/events/EventTarget.h"
#include "public/platform/WebMessagePortChannel.h"
@@ -53,7 +53,7 @@ typedef Vector<WebMessagePortChannelUniquePtr, 1> MessagePortChannelArray;
class CORE_EXPORT MessagePort : public EventTargetWithInlineData,
public ActiveScriptWrappable<MessagePort>,
- public SuspendableObject,
+ public ContextLifecycleObserver,
public WebMessagePortChannelClient {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(MessagePort);
@@ -97,14 +97,14 @@ class CORE_EXPORT MessagePort : public EventTargetWithInlineData,
const AtomicString& interfaceName() const override;
ExecutionContext* getExecutionContext() const override {
- return SuspendableObject::getExecutionContext();
+ return ContextLifecycleObserver::getExecutionContext();
}
MessagePort* toMessagePort() override { return this; }
// ScriptWrappable implementation.
bool hasPendingActivity() const final;
- // SuspendableObject implementation.
+ // ContextLifecycleObserver implementation.
void contextDestroyed() override { close(); }
void setOnmessage(EventListener* listener) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.cpp ('k') | third_party/WebKit/Source/core/dom/MessagePort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698