OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> | 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
5 * Copyright (C) 2012 Intel Corporation | 5 * Copyright (C) 2012 Intel Corporation |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool responseIsXML() const; | 192 bool responseIsXML() const; |
193 bool responseIsHTML() const; | 193 bool responseIsHTML() const; |
194 | 194 |
195 PassOwnPtr<TextResourceDecoder> createDecoder() const; | 195 PassOwnPtr<TextResourceDecoder> createDecoder() const; |
196 | 196 |
197 void initResponseDocument(); | 197 void initResponseDocument(); |
198 void parseDocumentChunk(const char* data, unsigned dataLength); | 198 void parseDocumentChunk(const char* data, unsigned dataLength); |
199 | 199 |
200 bool areMethodAndURLValidForSend(); | 200 bool areMethodAndURLValidForSend(); |
201 | 201 |
| 202 void throwForLoadFailureIfNeeded(ExceptionState&, const String&); |
| 203 |
202 bool initSend(ExceptionState&); | 204 bool initSend(ExceptionState&); |
203 void sendBytesData(const void*, size_t, ExceptionState&); | 205 void sendBytesData(const void*, size_t, ExceptionState&); |
204 void send(Document*, ExceptionState&); | 206 void send(Document*, ExceptionState&); |
205 void send(const String&, ExceptionState&); | 207 void send(const String&, ExceptionState&); |
206 void send(Blob*, ExceptionState&); | 208 void send(Blob*, ExceptionState&); |
207 void send(DOMFormData*, ExceptionState&); | 209 void send(DOMFormData*, ExceptionState&); |
208 void send(DOMArrayBuffer*, ExceptionState&); | 210 void send(DOMArrayBuffer*, ExceptionState&); |
209 void send(DOMArrayBufferView*, ExceptionState&); | 211 void send(DOMArrayBufferView*, ExceptionState&); |
210 | 212 |
211 const AtomicString& getRequestHeader(const AtomicString& name) const; | 213 const AtomicString& getRequestHeader(const AtomicString& name) const; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 bool m_sameOriginRequest; | 315 bool m_sameOriginRequest; |
314 // True iff the ongoing resource loading is using the downloadToFile | 316 // True iff the ongoing resource loading is using the downloadToFile |
315 // option. | 317 // option. |
316 bool m_downloadingToFile; | 318 bool m_downloadingToFile; |
317 bool m_responseTextOverflow; | 319 bool m_responseTextOverflow; |
318 }; | 320 }; |
319 | 321 |
320 } // namespace blink | 322 } // namespace blink |
321 | 323 |
322 #endif // XMLHttpRequest_h | 324 #endif // XMLHttpRequest_h |
OLD | NEW |