void XMLHttpRequest::send(ArrayBufferView* body, ExceptionCode& ec) { HistogramSupport::histogramEnumeration("WebCore.XHR.send.ArrayBufferOrView", XMLHttpRequestSendArrayBufferView, XMLHttpRequestSendArrayBufferOrViewMax); sendBytesData(body->baseAddress(), body->byteLength(), ec); }
ExceptionOr<void> XMLHttpRequest::send(ArrayBufferView& body) { return sendBytesData(body.baseAddress(), body.byteLength()); }
void XMLHttpRequest::send(ArrayBufferView* body, ExceptionCode& ec) { sendBytesData(body->baseAddress(), body->byteLength(), ec); }
ExceptionOr<void> XMLHttpRequest::send(ArrayBuffer& body) { ASCIILiteral consoleMessage("ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead."); scriptExecutionContext()->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, consoleMessage); return sendBytesData(body.data(), body.byteLength()); }