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

Unified Diff: Source/core/dom/MessageChannel.h

Issue 1104293002: Oilpan: put MessageChannel on the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp ('k') | Source/core/dom/MessageChannel.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MessageChannel.h
diff --git a/Source/core/dom/MessageChannel.h b/Source/core/dom/MessageChannel.h
index 62857c0e0ac76cd2fab979b0c9d008186c45e20d..4f0ccfe6c571914db4ea8fd807f9b8a301f2843d 100644
--- a/Source/core/dom/MessageChannel.h
+++ b/Source/core/dom/MessageChannel.h
@@ -29,8 +29,6 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
namespace blink {
@@ -38,13 +36,13 @@ namespace blink {
class MessagePort;
class ExecutionContext;
-class MessageChannel final : public RefCountedWillBeGarbageCollected<MessageChannel>, public ScriptWrappable {
+class MessageChannel final : public GarbageCollectedFinalized<MessageChannel>, public ScriptWrappable {
DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MessageChannel);
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<MessageChannel> create(ExecutionContext* context)
+ static MessageChannel* create(ExecutionContext* context)
{
- return adoptRefWillBeNoop(new MessageChannel(context));
+ return new MessageChannel(context);
}
MessagePort* port1() const { return m_port1.get(); }
« no previous file with comments | « Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp ('k') | Source/core/dom/MessageChannel.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698