| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class ThreadableLoader; | 48 class ThreadableLoader; |
| 49 | 49 |
| 50 class XMLHttpRequest : public RefCountedGarbageCollected<XMLHttpRequest>, public
ScriptWrappable, public EventTarget, private ThreadableLoaderClient, public Act
iveDOMObject { | 50 class XMLHttpRequest : public RefCountedGarbageCollected<XMLHttpRequest>, public
ScriptWrappable, public EventTarget, private ThreadableLoaderClient, public Act
iveDOMObject { |
| 51 DECLARE_GC_INFO | 51 DECLARE_GC_INFO |
| 52 public: | 52 public: |
| 53 static PassRefPtr<XMLHttpRequest> create(ScriptExecutionContext*, PassRefPtr
<SecurityOrigin> = 0); | 53 static PassRefPtr<XMLHttpRequest> create(ScriptExecutionContext*, PassRefPtr
<SecurityOrigin> = 0); |
| 54 ~XMLHttpRequest(); | 54 ~XMLHttpRequest(); |
| 55 | 55 |
| 56 virtual void trace(Visitor*); | 56 virtual void trace(Visitor*); |
| 57 | 57 |
| 58 virtual void visitWith(Visitor* visitor) const OVERRIDE | 58 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 59 { | 59 { |
| 60 visitor->visit(this); | 60 visitor->mark(this); |
| 61 } | 61 } |
| 62 | 62 |
| 63 // These exact numeric values are important because JS expects them. | 63 // These exact numeric values are important because JS expects them. |
| 64 enum State { | 64 enum State { |
| 65 UNSENT = 0, | 65 UNSENT = 0, |
| 66 OPENED = 1, | 66 OPENED = 1, |
| 67 HEADERS_RECEIVED = 2, | 67 HEADERS_RECEIVED = 2, |
| 68 LOADING = 3, | 68 LOADING = 3, |
| 69 DONE = 4 | 69 DONE = 4 |
| 70 }; | 70 }; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 247 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
| 248 ResponseTypeCode m_responseTypeCode; | 248 ResponseTypeCode m_responseTypeCode; |
| 249 | 249 |
| 250 RefPtr<SecurityOrigin> m_securityOrigin; | 250 RefPtr<SecurityOrigin> m_securityOrigin; |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace WebCore | 253 } // namespace WebCore |
| 254 | 254 |
| 255 #endif // XMLHttpRequest_h | 255 #endif // XMLHttpRequest_h |
| OLD | NEW |