| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void open(const String& method, const KURL&, bool async, ExceptionState&); | 102 void open(const String& method, const KURL&, bool async, ExceptionState&); |
| 103 void open(const String& method, const KURL&, bool async, const String& user,
ExceptionState&); | 103 void open(const String& method, const KURL&, bool async, const String& user,
ExceptionState&); |
| 104 void open(const String& method, const KURL&, bool async, const String& user,
const String& password, ExceptionState&); | 104 void open(const String& method, const KURL&, bool async, const String& user,
const String& password, ExceptionState&); |
| 105 void send(ExceptionState&); | 105 void send(ExceptionState&); |
| 106 void send(Document*, ExceptionState&); | 106 void send(Document*, ExceptionState&); |
| 107 void send(const String&, ExceptionState&); | 107 void send(const String&, ExceptionState&); |
| 108 void send(Blob*, ExceptionState&); | 108 void send(Blob*, ExceptionState&); |
| 109 void send(DOMFormData*, ExceptionState&); | 109 void send(DOMFormData*, ExceptionState&); |
| 110 void send(ArrayBuffer*, ExceptionState&); | 110 void send(ArrayBuffer*, ExceptionState&); |
| 111 void send(ArrayBufferView*, ExceptionState&); | 111 void send(ArrayBufferView*, ExceptionState&); |
| 112 void abort(); | 112 void abort(ExceptionState&); |
| 113 void setRequestHeader(const AtomicString& name, const String& value, Excepti
onState&); | 113 void setRequestHeader(const AtomicString& name, const String& value, Excepti
onState&); |
| 114 void overrideMimeType(const String& override); | 114 void overrideMimeType(const String& override); |
| 115 String getAllResponseHeaders(ExceptionState&) const; | 115 String getAllResponseHeaders(ExceptionState&) const; |
| 116 String getResponseHeader(const AtomicString& name, ExceptionState&) const; | 116 String getResponseHeader(const AtomicString& name, ExceptionState&) const; |
| 117 ScriptString responseText(ExceptionState&); | 117 ScriptString responseText(ExceptionState&); |
| 118 ScriptString responseJSONSource(); | 118 ScriptString responseJSONSource(); |
| 119 Document* responseXML(ExceptionState&); | 119 Document* responseXML(ExceptionState&); |
| 120 Blob* responseBlob(); | 120 Blob* responseBlob(); |
| 121 Stream* responseStream(); | 121 Stream* responseStream(); |
| 122 unsigned long timeout() const { return m_timeoutMilliseconds; } | 122 unsigned long timeout() const { return m_timeoutMilliseconds; } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 RefPtr<TextResourceDecoder> m_decoder; | 210 RefPtr<TextResourceDecoder> m_decoder; |
| 211 | 211 |
| 212 ScriptString m_responseText; | 212 ScriptString m_responseText; |
| 213 mutable bool m_createdDocument; | 213 mutable bool m_createdDocument; |
| 214 mutable RefPtr<Document> m_responseDocument; | 214 mutable RefPtr<Document> m_responseDocument; |
| 215 | 215 |
| 216 RefPtr<SharedBuffer> m_binaryResponseBuilder; | 216 RefPtr<SharedBuffer> m_binaryResponseBuilder; |
| 217 mutable RefPtr<ArrayBuffer> m_responseArrayBuffer; | 217 mutable RefPtr<ArrayBuffer> m_responseArrayBuffer; |
| 218 | 218 |
| 219 // Prevents reentrant of methods while m_loader->cancel() is running. |
| 220 bool m_preventReentrant; |
| 221 |
| 219 bool m_error; | 222 bool m_error; |
| 220 | 223 |
| 221 bool m_uploadEventsAllowed; | 224 bool m_uploadEventsAllowed; |
| 222 bool m_uploadComplete; | 225 bool m_uploadComplete; |
| 223 | 226 |
| 224 bool m_sameOriginRequest; | 227 bool m_sameOriginRequest; |
| 225 | 228 |
| 226 // Used for onprogress tracking | 229 // Used for onprogress tracking |
| 227 long long m_receivedLength; | 230 long long m_receivedLength; |
| 228 | 231 |
| 229 unsigned m_lastSendLineNumber; | 232 unsigned m_lastSendLineNumber; |
| 230 String m_lastSendURL; | 233 String m_lastSendURL; |
| 231 ExceptionCode m_exceptionCode; | 234 ExceptionCode m_exceptionCode; |
| 232 | 235 |
| 233 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; | 236 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; |
| 234 | 237 |
| 235 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 238 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
| 236 ResponseTypeCode m_responseTypeCode; | 239 ResponseTypeCode m_responseTypeCode; |
| 237 Timer<XMLHttpRequest> m_protectionTimer; | 240 Timer<XMLHttpRequest> m_protectionTimer; |
| 238 RefPtr<SecurityOrigin> m_securityOrigin; | 241 RefPtr<SecurityOrigin> m_securityOrigin; |
| 239 }; | 242 }; |
| 240 | 243 |
| 241 } // namespace WebCore | 244 } // namespace WebCore |
| 242 | 245 |
| 243 #endif // XMLHttpRequest_h | 246 #endif // XMLHttpRequest_h |
| OLD | NEW |