| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 class XMLHttpRequest final : public XMLHttpRequestEventTarget, private Threadabl
eLoaderClient, public DocumentParserClient, public ActiveScriptWrappable, public
ActiveDOMObject { | 69 class XMLHttpRequest final : public XMLHttpRequestEventTarget, private Threadabl
eLoaderClient, public DocumentParserClient, public ActiveScriptWrappable, public
ActiveDOMObject { |
| 70 DEFINE_WRAPPERTYPEINFO(); | 70 DEFINE_WRAPPERTYPEINFO(); |
| 71 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 kUnsent = 0, |
| 80 OPENED = 1, | 80 kOpened = 1, |
| 81 HEADERS_RECEIVED = 2, | 81 kHeadersReceived = 2, |
| 82 LOADING = 3, | 82 kLoading = 3, |
| 83 DONE = 4 | 83 kDone = 4 |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 enum ResponseTypeCode { | 86 enum ResponseTypeCode { |
| 87 ResponseTypeDefault, | 87 ResponseTypeDefault, |
| 88 ResponseTypeText, | 88 ResponseTypeText, |
| 89 ResponseTypeJSON, | 89 ResponseTypeJSON, |
| 90 ResponseTypeDocument, | 90 ResponseTypeDocument, |
| 91 ResponseTypeBlob, | 91 ResponseTypeBlob, |
| 92 ResponseTypeArrayBuffer, | 92 ResponseTypeArrayBuffer, |
| 93 ResponseTypeLegacyStream, | 93 ResponseTypeLegacyStream, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 bool m_sameOriginRequest; | 316 bool m_sameOriginRequest; |
| 317 // True iff the ongoing resource loading is using the downloadToFile | 317 // True iff the ongoing resource loading is using the downloadToFile |
| 318 // option. | 318 // option. |
| 319 bool m_downloadingToFile; | 319 bool m_downloadingToFile; |
| 320 bool m_responseTextOverflow; | 320 bool m_responseTextOverflow; |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 } // namespace blink | 323 } // namespace blink |
| 324 | 324 |
| 325 #endif // XMLHttpRequest_h | 325 #endif // XMLHttpRequest_h |
| OLD | NEW |