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

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 : SuspendableObject(&executionContext), m_started(false), m_closed(false) {}
55 SuspendableObject(&executionContext),
56 m_started(false),
57 m_closed(false) {}
58 55
59 MessagePort::~MessagePort() { 56 MessagePort::~MessagePort() {
60 DCHECK(!m_started || !isEntangled()); 57 DCHECK(!m_started || !isEntangled());
61 } 58 }
62 59
63 void MessagePort::postMessage(ExecutionContext* context, 60 void MessagePort::postMessage(ExecutionContext* context,
64 PassRefPtr<SerializedScriptValue> message, 61 PassRefPtr<SerializedScriptValue> message,
65 const MessagePortArray& ports, 62 const MessagePortArray& ports,
66 ExceptionState& exceptionState) { 63 ExceptionState& exceptionState) {
67 if (!isEntangled()) 64 if (!isEntangled())
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 286 }
290 return portArray; 287 return portArray;
291 } 288 }
292 289
293 DEFINE_TRACE(MessagePort) { 290 DEFINE_TRACE(MessagePort) {
294 SuspendableObject::trace(visitor); 291 SuspendableObject::trace(visitor);
295 EventTargetWithInlineData::trace(visitor); 292 EventTargetWithInlineData::trace(visitor);
296 } 293 }
297 294
298 } // namespace blink 295 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryList.cpp ('k') | third_party/WebKit/Source/core/fileapi/FileReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698