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

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

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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: 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 e59003fc37c94951b37c3c4db859f3152868f90d..cd0d1c5a16ee76c4266f54ad475d47a5b3fee7c8 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.h
+++ b/third_party/WebKit/Source/core/dom/MessagePort.h
@@ -27,6 +27,7 @@
#ifndef MessagePort_h
#define MessagePort_h
+#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/events/EventListener.h"
@@ -57,6 +58,7 @@ typedef Vector<OwnPtr<WebMessagePortChannel>, 1> MessagePortChannelArray;
class CORE_EXPORT MessagePort
: public RefCountedGarbageCollectedEventTargetWithInlineData<MessagePort>
+ , public ActiveScriptWrappable
, public ActiveDOMObject
, public WebMessagePortChannelClient {
DEFINE_WRAPPERTYPEINFO();
@@ -89,8 +91,10 @@ public:
ExecutionContext* getExecutionContext() const override { return ActiveDOMObject::getExecutionContext(); }
MessagePort* toMessagePort() override { return this; }
+ // ActiveScriptWrappable implementation.
+ bool hasPendingActivity() const final;
+
// ActiveDOMObject implementation.
- bool hasPendingActivity() const override;
void stop() override { close(); }
void setOnmessage(PassRefPtrWillBeRawPtr<EventListener> listener)

Powered by Google App Engine
This is Rietveld 408576698