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

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

Issue 1030613002: [bindings] Make XMLHttpRequest.send() use the generated binding code over the custom one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 9 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: Source/core/xmlhttprequest/XMLHttpRequest.h
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.h b/Source/core/xmlhttprequest/XMLHttpRequest.h
index acac3301a69af2d323758a9cac70b099deee0002..fbce3771bf9c96dc973f72f94e9811d89befbd14 100644
--- a/Source/core/xmlhttprequest/XMLHttpRequest.h
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.h
@@ -41,6 +41,7 @@
namespace blink {
+class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData;
class Blob;
class BlobDataHandle;
class DOMArrayBuffer;
@@ -116,12 +117,7 @@ public:
void open(const AtomicString& method, const KURL&, bool async, const String& user, ExceptionState&);
void open(const AtomicString& method, const KURL&, bool async, const String& user, const String& password, ExceptionState&);
void send(ExceptionState&);
- void send(Document*, ExceptionState&);
- void send(const String&, ExceptionState&);
- void send(Blob*, ExceptionState&);
- void send(DOMFormData*, ExceptionState&);
- void send(DOMArrayBuffer*, ExceptionState&);
- void send(DOMArrayBufferView*, ExceptionState&);
+ void send(const ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData&, ExceptionState&);
void abort();
void setRequestHeader(const AtomicString& name, const AtomicString& value, ExceptionState&);
void overrideMimeType(const AtomicString& override, ExceptionState&);
@@ -204,6 +200,12 @@ private:
bool initSend(ExceptionState&);
void sendBytesData(const void*, size_t, ExceptionState&);
+ void send(Document*, ExceptionState&);
+ void send(const String&, ExceptionState&);
+ void send(Blob*, ExceptionState&);
+ void send(DOMFormData*, ExceptionState&);
+ void send(DOMArrayBuffer*, ExceptionState&);
+ void send(DOMArrayBufferView*, ExceptionState&);
const AtomicString& getRequestHeader(const AtomicString& name) const;
void setRequestHeaderInternal(const AtomicString& name, const AtomicString& value);
« no previous file with comments | « Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp ('k') | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698