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

Side by Side Diff: third_party/WebKit/Source/core/events/MessageEvent.cpp

Issue 1983753002: Remove OwnPtr::release() calls in core/ (part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Henry Mason (hmason@mac.com) 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com)
3 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 MessagePortArray MessageEvent::ports() const 195 MessagePortArray MessageEvent::ports() const
196 { 196 {
197 bool unused; 197 bool unused;
198 return ports(unused); 198 return ports(unused);
199 } 199 }
200 200
201 void MessageEvent::entangleMessagePorts(ExecutionContext* context) 201 void MessageEvent::entangleMessagePorts(ExecutionContext* context)
202 { 202 {
203 m_ports = MessagePort::entanglePorts(*context, m_channels.release()); 203 m_ports = MessagePort::entanglePorts(*context, std::move(m_channels));
204 } 204 }
205 205
206 DEFINE_TRACE(MessageEvent) 206 DEFINE_TRACE(MessageEvent)
207 { 207 {
208 visitor->trace(m_dataAsBlob); 208 visitor->trace(m_dataAsBlob);
209 visitor->trace(m_dataAsArrayBuffer); 209 visitor->trace(m_dataAsArrayBuffer);
210 visitor->trace(m_source); 210 visitor->trace(m_source);
211 visitor->trace(m_ports); 211 visitor->trace(m_ports);
212 Event::trace(visitor); 212 Event::trace(visitor);
213 } 213 }
(...skipping 16 matching lines...) Expand all
230 break; 230 break;
231 case MessageEvent::DataTypeArrayBuffer: 231 case MessageEvent::DataTypeArrayBuffer:
232 V8HiddenValue::setHiddenValue(ScriptState::current(isolate), wrapper, V8 HiddenValue::arrayBufferData(isolate), toV8(dataAsArrayBuffer(), wrapper, isolat e)); 232 V8HiddenValue::setHiddenValue(ScriptState::current(isolate), wrapper, V8 HiddenValue::arrayBufferData(isolate), toV8(dataAsArrayBuffer(), wrapper, isolat e));
233 break; 233 break;
234 } 234 }
235 235
236 return wrapper; 236 return wrapper;
237 } 237 }
238 238
239 } // namespace blink 239 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/MessagePort.cpp ('k') | third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698