Chromium Code Reviews| Index: Source/core/xmlhttprequest/XMLHttpRequest.h |
| diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.h b/Source/core/xmlhttprequest/XMLHttpRequest.h |
| index acac3301a69af2d323758a9cac70b099deee0002..cef223af1cad9d7dd80901691b8d1d673e7f3f33 100644 |
| --- a/Source/core/xmlhttprequest/XMLHttpRequest.h |
| +++ b/Source/core/xmlhttprequest/XMLHttpRequest.h |
| @@ -41,6 +41,7 @@ |
| namespace blink { |
| +class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrHTMLDocumentOrStringOrFormData; |
|
yhirano
2015/03/23 11:50:41
Sorry that I don't know much about union, should w
vivekg
2015/03/23 11:57:36
Yes I think this needs to be fixed in the bindings
Jens Widell
2015/03/23 12:03:04
If we only have Document, all types of documents w
|
| 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 ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrHTMLDocumentOrStringOrFormData&, 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); |