| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 void setResponseType(const String&, ExceptionState&); | 141 void setResponseType(const String&, ExceptionState&); |
| 142 String responseType(); | 142 String responseType(); |
| 143 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } | 143 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } |
| 144 | 144 |
| 145 String responseURL(); | 145 String responseURL(); |
| 146 | 146 |
| 147 // response attribute has custom getter. | 147 // response attribute has custom getter. |
| 148 DOMArrayBuffer* responseArrayBuffer(); | 148 DOMArrayBuffer* responseArrayBuffer(); |
| 149 | 149 |
| 150 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lin
eNumber; } | |
| 151 void setLastSendURL(const String& url) { m_lastSendURL = url; } | |
| 152 | |
| 153 XMLHttpRequestUpload* upload(); | 150 XMLHttpRequestUpload* upload(); |
| 154 | 151 |
| 155 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); | 152 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); |
| 156 | 153 |
| 157 virtual void trace(Visitor*) override; | 154 virtual void trace(Visitor*) override; |
| 158 | 155 |
| 159 private: | 156 private: |
| 160 class BlobLoader; | 157 class BlobLoader; |
| 161 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); | 158 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); |
| 162 | 159 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser; | 271 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser; |
| 275 | 272 |
| 276 RefPtr<SharedBuffer> m_binaryResponseBuilder; | 273 RefPtr<SharedBuffer> m_binaryResponseBuilder; |
| 277 long long m_lengthDownloadedToFile; | 274 long long m_lengthDownloadedToFile; |
| 278 | 275 |
| 279 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; | 276 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; |
| 280 | 277 |
| 281 // Used for onprogress tracking | 278 // Used for onprogress tracking |
| 282 long long m_receivedLength; | 279 long long m_receivedLength; |
| 283 | 280 |
| 284 unsigned m_lastSendLineNumber; | |
| 285 String m_lastSendURL; | |
| 286 // An exception to throw in synchronous mode. It's set when failure | 281 // An exception to throw in synchronous mode. It's set when failure |
| 287 // notification is received from m_loader and thrown at the end of send() if | 282 // notification is received from m_loader and thrown at the end of send() if |
| 288 // any. | 283 // any. |
| 289 ExceptionCode m_exceptionCode; | 284 ExceptionCode m_exceptionCode; |
| 290 | 285 |
| 291 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; | 286 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; |
| 292 | 287 |
| 293 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 288 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
| 294 ResponseTypeCode m_responseTypeCode; | 289 ResponseTypeCode m_responseTypeCode; |
| 295 RefPtr<SecurityOrigin> m_securityOrigin; | 290 RefPtr<SecurityOrigin> m_securityOrigin; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 308 bool m_uploadComplete; | 303 bool m_uploadComplete; |
| 309 bool m_sameOriginRequest; | 304 bool m_sameOriginRequest; |
| 310 // True iff the ongoing resource loading is using the downloadToFile | 305 // True iff the ongoing resource loading is using the downloadToFile |
| 311 // option. | 306 // option. |
| 312 bool m_downloadingToFile; | 307 bool m_downloadingToFile; |
| 313 }; | 308 }; |
| 314 | 309 |
| 315 } // namespace blink | 310 } // namespace blink |
| 316 | 311 |
| 317 #endif // XMLHttpRequest_h | 312 #endif // XMLHttpRequest_h |
| OLD | NEW |