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

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h

Issue 2723583005: Support XMLHttpRequest.send(URLSearchParams) (Closed)
Patch Set: rebased upto r454567 Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h
index ce3ca65f7d7939680b2b458c5e26e70ef7b54ec0..95bcb2fc4f890bf62db754e1828adc77661a1567 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h
@@ -48,7 +48,8 @@
namespace blink {
-class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData;
+class
+ ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDataOrURLSearchParams;
class Blob;
class BlobDataHandle;
class DOMArrayBuffer;
@@ -62,6 +63,7 @@ class ScriptState;
class SharedBuffer;
class TextResourceDecoder;
class ThreadableLoader;
+class URLSearchParams;
class WebDataConsumerHandle;
class XMLHttpRequestUpload;
@@ -133,7 +135,7 @@ class XMLHttpRequest final : public XMLHttpRequestEventTarget,
bool async,
ExceptionState&);
void send(
- const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData&,
+ const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormDataOrURLSearchParams&,
ExceptionState&);
void abort();
void dispose();
@@ -234,6 +236,7 @@ class XMLHttpRequest final : public XMLHttpRequestEventTarget,
void send(const String&, ExceptionState&);
void send(Blob*, ExceptionState&);
void send(FormData*, ExceptionState&);
+ void send(URLSearchParams*, ExceptionState&);
void send(DOMArrayBuffer*, ExceptionState&);
void send(DOMArrayBufferView*, ExceptionState&);
@@ -277,6 +280,9 @@ class XMLHttpRequest final : public XMLHttpRequestEventTarget,
long long,
long long);
+ void updateContentTypeAndCharset(const AtomicString& contentType,
+ const String& charset);
+
XMLHttpRequestProgressEventThrottle& progressEventThrottle();
Member<XMLHttpRequestUpload> m_upload;
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/BUILD.gn ('k') | third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698