| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 class Stream; | 61 class Stream; |
| 62 class TextResourceDecoder; | 62 class TextResourceDecoder; |
| 63 class ThreadableLoader; | 63 class ThreadableLoader; |
| 64 class WebDataConsumerHandle; | 64 class WebDataConsumerHandle; |
| 65 class XMLHttpRequestUpload; | 65 class XMLHttpRequestUpload; |
| 66 | 66 |
| 67 typedef int ExceptionCode; | 67 typedef int ExceptionCode; |
| 68 | 68 |
| 69 class XMLHttpRequest final : public XMLHttpRequestEventTarget, private Threadabl
eLoaderClient, public DocumentParserClient, public ActiveDOMObject { | 69 class XMLHttpRequest final : public XMLHttpRequestEventTarget, private Threadabl
eLoaderClient, public DocumentParserClient, public ActiveDOMObject { |
| 70 DEFINE_WRAPPERTYPEINFO(); | 70 DEFINE_WRAPPERTYPEINFO(); |
| 71 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); | 71 USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); |
| 72 public: | 72 public: |
| 73 static XMLHttpRequest* create(ScriptState*); | 73 static XMLHttpRequest* create(ScriptState*); |
| 74 static XMLHttpRequest* create(ExecutionContext*); | 74 static XMLHttpRequest* create(ExecutionContext*); |
| 75 ~XMLHttpRequest() override; | 75 ~XMLHttpRequest() override; |
| 76 | 76 |
| 77 // These exact numeric values are important because JS expects them. | 77 // These exact numeric values are important because JS expects them. |
| 78 enum State { | 78 enum State { |
| 79 UNSENT = 0, | 79 UNSENT = 0, |
| 80 OPENED = 1, | 80 OPENED = 1, |
| 81 HEADERS_RECEIVED = 2, | 81 HEADERS_RECEIVED = 2, |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 RefPtr<ThreadableLoader> m_loader; | 267 RefPtr<ThreadableLoader> m_loader; |
| 268 State m_state; | 268 State m_state; |
| 269 | 269 |
| 270 ResourceResponse m_response; | 270 ResourceResponse m_response; |
| 271 String m_finalResponseCharset; | 271 String m_finalResponseCharset; |
| 272 | 272 |
| 273 OwnPtr<TextResourceDecoder> m_decoder; | 273 OwnPtr<TextResourceDecoder> m_decoder; |
| 274 | 274 |
| 275 ScriptString m_responseText; | 275 ScriptString m_responseText; |
| 276 RefPtrWillBeMember<Document> m_responseDocument; | 276 Member<Document> m_responseDocument; |
| 277 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser; | 277 Member<DocumentParser> m_responseDocumentParser; |
| 278 | 278 |
| 279 RefPtr<SharedBuffer> m_binaryResponseBuilder; | 279 RefPtr<SharedBuffer> m_binaryResponseBuilder; |
| 280 long long m_lengthDownloadedToFile; | 280 long long m_lengthDownloadedToFile; |
| 281 | 281 |
| 282 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; | 282 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; |
| 283 | 283 |
| 284 // Used for onprogress tracking | 284 // Used for onprogress tracking |
| 285 long long m_receivedLength; | 285 long long m_receivedLength; |
| 286 | 286 |
| 287 // An exception to throw in synchronous mode. It's set when failure | 287 // An exception to throw in synchronous mode. It's set when failure |
| (...skipping 27 matching lines...) Expand all Loading... |
| 315 bool m_sameOriginRequest; | 315 bool m_sameOriginRequest; |
| 316 // True iff the ongoing resource loading is using the downloadToFile | 316 // True iff the ongoing resource loading is using the downloadToFile |
| 317 // option. | 317 // option. |
| 318 bool m_downloadingToFile; | 318 bool m_downloadingToFile; |
| 319 bool m_responseTextOverflow; | 319 bool m_responseTextOverflow; |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 } // namespace blink | 322 } // namespace blink |
| 323 | 323 |
| 324 #endif // XMLHttpRequest_h | 324 #endif // XMLHttpRequest_h |
| OLD | NEW |