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. |
11 * | 11 * |
12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with this library; if not, write to the Free Software | 18 * License along with this library; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 20 * MA 02110-1301 USA |
20 */ | 21 */ |
21 | 22 |
22 #ifndef XMLHttpRequest_h | 23 #ifndef XMLHttpRequest_h |
23 #define XMLHttpRequest_h | 24 #define XMLHttpRequest_h |
24 | 25 |
25 #include "bindings/core/v8/ActiveScriptWrappable.h" | 26 #include "bindings/core/v8/ActiveScriptWrappable.h" |
26 #include "bindings/core/v8/ScriptString.h" | 27 #include "bindings/core/v8/ScriptString.h" |
27 #include "bindings/core/v8/ScriptWrappable.h" | 28 #include "bindings/core/v8/ScriptWrappable.h" |
28 #include "core/dom/ActiveDOMObject.h" | 29 #include "core/dom/ActiveDOMObject.h" |
29 #include "core/dom/DocumentParserClient.h" | 30 #include "core/dom/DocumentParserClient.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // Used for onprogress tracking | 306 // Used for onprogress tracking |
306 long long m_receivedLength; | 307 long long m_receivedLength; |
307 | 308 |
308 // An exception to throw in synchronous mode. It's set when failure | 309 // An exception to throw in synchronous mode. It's set when failure |
309 // notification is received from m_loader and thrown at the end of send() if | 310 // notification is received from m_loader and thrown at the end of send() if |
310 // any. | 311 // any. |
311 ExceptionCode m_exceptionCode; | 312 ExceptionCode m_exceptionCode; |
312 | 313 |
313 Member<XMLHttpRequestProgressEventThrottle> m_progressEventThrottle; | 314 Member<XMLHttpRequestProgressEventThrottle> m_progressEventThrottle; |
314 | 315 |
315 // An enum corresponding to the allowed string values for the responseType att
ribute. | 316 // An enum corresponding to the allowed string values for the responseType |
| 317 // attribute. |
316 ResponseTypeCode m_responseTypeCode; | 318 ResponseTypeCode m_responseTypeCode; |
317 RefPtr<SecurityOrigin> m_isolatedWorldSecurityOrigin; | 319 RefPtr<SecurityOrigin> m_isolatedWorldSecurityOrigin; |
318 | 320 |
319 // This blob loader will be used if |m_downloadingToFile| is true and | 321 // This blob loader will be used if |m_downloadingToFile| is true and |
320 // |m_responseTypeCode| is NOT ResponseTypeBlob. | 322 // |m_responseTypeCode| is NOT ResponseTypeBlob. |
321 Member<BlobLoader> m_blobLoader; | 323 Member<BlobLoader> m_blobLoader; |
322 | 324 |
323 // Positive if we are dispatching events. | 325 // Positive if we are dispatching events. |
324 // This is an integer specifying the recursion level rather than a boolean | 326 // This is an integer specifying the recursion level rather than a boolean |
325 // because in some cases we have recursive dispatching. | 327 // because in some cases we have recursive dispatching. |
(...skipping 12 matching lines...) Expand all Loading... |
338 // option. | 340 // option. |
339 bool m_downloadingToFile; | 341 bool m_downloadingToFile; |
340 bool m_responseTextOverflow; | 342 bool m_responseTextOverflow; |
341 }; | 343 }; |
342 | 344 |
343 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); | 345 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); |
344 | 346 |
345 } // namespace blink | 347 } // namespace blink |
346 | 348 |
347 #endif // XMLHttpRequest_h | 349 #endif // XMLHttpRequest_h |
OLD | NEW |