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

Side by Side Diff: third_party/WebKit/Source/core/dom/MessagePort.cpp

Issue 2578193004: Remove ActiveScriptWrappableBase::m_scriptWrappable (Closed)
Patch Set: temp 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 namespace blink { 45 namespace blink {
46 46
47 MessagePort* MessagePort::create(ExecutionContext& executionContext) { 47 MessagePort* MessagePort::create(ExecutionContext& executionContext) {
48 MessagePort* port = new MessagePort(executionContext); 48 MessagePort* port = new MessagePort(executionContext);
49 port->suspendIfNeeded(); 49 port->suspendIfNeeded();
50 return port; 50 return port;
51 } 51 }
52 52
53 MessagePort::MessagePort(ExecutionContext& executionContext) 53 MessagePort::MessagePort(ExecutionContext& executionContext)
54 : ActiveScriptWrappable(this), 54 : ActiveScriptWrappable(),
sof 2016/12/16 06:36:23 It could be tedious change to make, but just remov
55 SuspendableObject(&executionContext), 55 SuspendableObject(&executionContext),
56 m_started(false), 56 m_started(false),
57 m_closed(false) {} 57 m_closed(false) {}
58 58
59 MessagePort::~MessagePort() { 59 MessagePort::~MessagePort() {
60 DCHECK(!m_started || !isEntangled()); 60 DCHECK(!m_started || !isEntangled());
61 } 61 }
62 62
63 void MessagePort::postMessage(ExecutionContext* context, 63 void MessagePort::postMessage(ExecutionContext* context,
64 PassRefPtr<SerializedScriptValue> message, 64 PassRefPtr<SerializedScriptValue> message,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 289 }
290 return portArray; 290 return portArray;
291 } 291 }
292 292
293 DEFINE_TRACE(MessagePort) { 293 DEFINE_TRACE(MessagePort) {
294 SuspendableObject::trace(visitor); 294 SuspendableObject::trace(visitor);
295 EventTargetWithInlineData::trace(visitor); 295 EventTargetWithInlineData::trace(visitor);
296 } 296 }
297 297
298 } // namespace blink 298 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698