| Index: Source/core/dom/MessageChannel.h
|
| diff --git a/Source/core/dom/MessageChannel.h b/Source/core/dom/MessageChannel.h
|
| index 5b1dc49a04fac99bcb7d28eca14def9f13cbb13a..750c601e5fc14769306c9fb4661788ddef36e681 100644
|
| --- a/Source/core/dom/MessageChannel.h
|
| +++ b/Source/core/dom/MessageChannel.h
|
| @@ -28,6 +28,7 @@
|
| #define MessageChannel_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| +#include "platform/heap/Handle.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/RefPtr.h"
|
| @@ -37,19 +38,24 @@ namespace WebCore {
|
| class MessagePort;
|
| class ExecutionContext;
|
|
|
| -class MessageChannel : public RefCounted<MessageChannel>, public ScriptWrappable {
|
| +class MessageChannel FINAL : public RefCountedWillBeGarbageCollectedFinalized<MessageChannel>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<MessageChannel> create(ExecutionContext* context) { return adoptRef(new MessageChannel(context)); }
|
| + static PassRefPtrWillBeRawPtr<MessageChannel> create(ExecutionContext* context)
|
| + {
|
| + return adoptRefWillBeNoop(new MessageChannel(context));
|
| + }
|
| ~MessageChannel();
|
|
|
| MessagePort* port1() const { return m_port1.get(); }
|
| MessagePort* port2() const { return m_port2.get(); }
|
|
|
| + void trace(Visitor*);
|
| +
|
| private:
|
| explicit MessageChannel(ExecutionContext*);
|
|
|
| - RefPtr<MessagePort> m_port1;
|
| - RefPtr<MessagePort> m_port2;
|
| + RefPtrWillBeMember<MessagePort> m_port1;
|
| + RefPtrWillBeMember<MessagePort> m_port2;
|
| };
|
|
|
| } // namespace WebCore
|
|
|