Lines Matching refs:xmlHttpRequest
24 #include "core/xml/XMLHttpRequest.h"
64 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, xmlHttpRequestCounter, ("XMLHttpRequest"));
157 PassRefPtr<XMLHttpRequest> XMLHttpRequest::create(ScriptExecutionContext* context, PassRefPtr<SecurityOrigin> securityOrigin)
159 RefPtr<XMLHttpRequest> xmlHttpRequest(adoptRef(new XMLHttpRequest(context, securityOrigin)));
160 xmlHttpRequest->suspendIfNeeded();
162 return xmlHttpRequest.release();
165 XMLHttpRequest::XMLHttpRequest(ScriptExecutionContext* context, PassRefPtr<SecurityOrigin> securityOrigin)
182 , m_protectionTimer(this, &XMLHttpRequest::dropProtection)
192 XMLHttpRequest::~XMLHttpRequest()
199 Document* XMLHttpRequest::document() const
205 SecurityOrigin* XMLHttpRequest::securityOrigin() const
210 XMLHttpRequest::State XMLHttpRequest::readyState() const
215 ScriptString XMLHttpRequest::responseText(ExceptionState& es)
226 Document* XMLHttpRequest::responseXML(ExceptionState& es)
263 Blob* XMLHttpRequest::responseBlob(ExceptionState& es)
298 ArrayBuffer* XMLHttpRequest::responseArrayBuffer(ExceptionState& es)
316 void XMLHttpRequest::setTimeout(unsigned long timeout, ExceptionState& es)
321 logConsoleError(scriptExecutionContext(), "XMLHttpRequest.timeout cannot be set for synchronous HTTP(S) requests made from the window context.");
328 void XMLHttpRequest::setResponseType(const String& responseType, ExceptionState& es)
340 logConsoleError(scriptExecutionContext(), "XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context.");
359 String XMLHttpRequest::responseType()
376 XMLHttpRequestUpload* XMLHttpRequest::upload()
383 void XMLHttpRequest::changeState(State newState)
391 void XMLHttpRequest::callReadyStateChangeListener()
410 void XMLHttpRequest::setWithCredentials(bool value, ExceptionState& es)
420 bool XMLHttpRequest::isAllowedHTTPMethod(const String& method)
427 String XMLHttpRequest::uppercaseKnownHTTPMethod(const String& method)
439 bool XMLHttpRequest::isAllowedHTTPHeader(const String& name)
446 void XMLHttpRequest::open(const String& method, const KURL& url, ExceptionState& es)
451 void XMLHttpRequest::open(const String& method, const KURL& url, bool async, ExceptionState& es)
473 es.throwDOMException(SecurityError, "'XMLHttpRequest.open' does not support the '" + method + "' method.");
494 logConsoleError(scriptExecutionContext(), "Synchronous HTTP(S) requests made from the window context cannot have XMLHttpRequest.responseType set.");
523 void XMLHttpRequest::open(const String& method, const KURL& url, bool async, const String& user, ExceptionState& es)
531 void XMLHttpRequest::open(const String& method, const KURL& url, bool async, const String& user, const String& password, ExceptionState& es)
540 bool XMLHttpRequest::initSend(ExceptionState& es)
554 void XMLHttpRequest::send(ExceptionState& es)
559 bool XMLHttpRequest::areMethodAndURLValidForSend()
564 void XMLHttpRequest::send(Document* document, ExceptionState& es)
578 // FIXME: According to XMLHttpRequest Level 2, this should use the Document.innerHTML algorithm
591 void XMLHttpRequest::send(const String& body, ExceptionState& es)
613 void XMLHttpRequest::send(Blob* body, ExceptionState& es)
641 void XMLHttpRequest::send(DOMFormData* body, ExceptionState& es)
659 void XMLHttpRequest::send(ArrayBuffer* body, ExceptionState& es)
661 String consoleMessage("ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.");
669 void XMLHttpRequest::send(ArrayBufferView* body, ExceptionState& es)
676 void XMLHttpRequest::sendBytesData(const void* data, size_t length, ExceptionState& es)
690 void XMLHttpRequest::sendForInspectorXHRReplay(PassRefPtr<FormData> formData, ExceptionState& es)
697 void XMLHttpRequest::createRequest(ExceptionState& es)
746 options.initiator = FetchInitiatorTypeNames::xmlhttprequest;
781 void XMLHttpRequest::abort()
784 RefPtr<XMLHttpRequest> protect(this);
812 bool XMLHttpRequest::internalAbort()
824 // open() call on the same XMLHttpRequest object, reentry happens. If
847 void XMLHttpRequest::clearResponse()
853 void XMLHttpRequest::clearResponseBuffers()
864 void XMLHttpRequest::clearRequest()
870 void XMLHttpRequest::genericError()
879 void XMLHttpRequest::networkError()
891 void XMLHttpRequest::abortError()
902 void XMLHttpRequest::dropProtectionSoon()
909 void XMLHttpRequest::dropProtection(Timer<XMLHttpRequest>*)
914 void XMLHttpRequest::overrideMimeType(const String& override)
919 void XMLHttpRequest::setRequestHeader(const AtomicString& name, const String& value, ExceptionState& es)
940 void XMLHttpRequest::setRequestHeaderInternal(const AtomicString& name, const String& value)
947 String XMLHttpRequest::getRequestHeader(const AtomicString& name) const
952 String XMLHttpRequest::getAllResponseHeaders(ExceptionState& es) const
965 // Hide Set-Cookie header fields from the XMLHttpRequest client for these reasons:
988 String XMLHttpRequest::getResponseHeader(const AtomicString& name, ExceptionState& es) const
1011 String XMLHttpRequest::responseMIMEType() const
1026 bool XMLHttpRequest::responseIsXML() const
1033 int XMLHttpRequest::status(ExceptionState& es) const
1047 String XMLHttpRequest::statusText(ExceptionState& es) const
1060 void XMLHttpRequest::didFail(const ResourceError& error)
1080 logConsoleError(scriptExecutionContext(), "XMLHttpRequest cannot load " + error.failingURL() + ". " + error.localizedDescription());
1086 void XMLHttpRequest::didFailRedirectCheck()
1091 void XMLHttpRequest::didFinishLoading(unsigned long identifier, double)
1115 void XMLHttpRequest::didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent)
1130 void XMLHttpRequest::didReceiveResponse(unsigned long identifier, const ResourceResponse& response)
1144 void XMLHttpRequest::didReceiveData(const char* data, int len)
1201 void XMLHttpRequest::didTimeout()
1204 RefPtr<XMLHttpRequest> protect(this);
1230 bool XMLHttpRequest::canSuspend() const
1235 void XMLHttpRequest::suspend(ReasonForSuspension)
1240 void XMLHttpRequest::resume()
1245 void XMLHttpRequest::stop()
1250 void XMLHttpRequest::contextDestroyed()
1256 const AtomicString& XMLHttpRequest::interfaceName() const
1261 ScriptExecutionContext* XMLHttpRequest::scriptExecutionContext() const
1266 EventTargetData* XMLHttpRequest::eventTargetData()
1271 EventTargetData* XMLHttpRequest::ensureEventTargetData()