OLD | NEW |
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 OwnPtrWillBeRawPtr<MessagePortArray> portArray = adoptPtrWillBeNoop(new Mess
agePortArray(channels->size())); | 254 OwnPtrWillBeRawPtr<MessagePortArray> portArray = adoptPtrWillBeNoop(new Mess
agePortArray(channels->size())); |
255 for (unsigned i = 0; i < channels->size(); ++i) { | 255 for (unsigned i = 0; i < channels->size(); ++i) { |
256 RefPtrWillBeRawPtr<MessagePort> port = MessagePort::create(context); | 256 RefPtrWillBeRawPtr<MessagePort> port = MessagePort::create(context); |
257 port->entangle((*channels)[i].release()); | 257 port->entangle((*channels)[i].release()); |
258 (*portArray)[i] = port.release(); | 258 (*portArray)[i] = port.release(); |
259 } | 259 } |
260 return portArray.release(); | 260 return portArray.release(); |
261 } | 261 } |
262 | 262 |
263 void MessagePort::trace(Visitor* visitor) | 263 DEFINE_TRACE(MessagePort) |
264 { | 264 { |
265 ActiveDOMObject::trace(visitor); | 265 ActiveDOMObject::trace(visitor); |
266 EventTargetWithInlineData::trace(visitor); | 266 EventTargetWithInlineData::trace(visitor); |
267 } | 267 } |
268 | 268 |
269 } // namespace blink | 269 } // namespace blink |
OLD | NEW |