| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 String responseText(ExceptionCode&); | 107 String responseText(ExceptionCode&); |
| 108 Document* responseXML(ExceptionCode&); | 108 Document* responseXML(ExceptionCode&); |
| 109 Document* optionalResponseXML() const { return m_responseDocument.get(); } | 109 Document* optionalResponseXML() const { return m_responseDocument.get(); } |
| 110 Blob* responseBlob(ExceptionCode&); | 110 Blob* responseBlob(ExceptionCode&); |
| 111 Blob* optionalResponseBlob() const { return m_responseBlob.get(); } | 111 Blob* optionalResponseBlob() const { return m_responseBlob.get(); } |
| 112 #if ENABLE(XHR_TIMEOUT) | 112 #if ENABLE(XHR_TIMEOUT) |
| 113 unsigned long timeout() const { return m_timeoutMilliseconds; } | 113 unsigned long timeout() const { return m_timeoutMilliseconds; } |
| 114 void setTimeout(unsigned long timeout, ExceptionCode&); | 114 void setTimeout(unsigned long timeout, ExceptionCode&); |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 void sendFromInspector(PassRefPtr<FormData>, ExceptionCode&); | 117 void sendForInspector(ExceptionCode&); |
| 118 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionCode&); |
| 118 | 119 |
| 119 // Expose HTTP validation methods for other untrusted requests. | 120 // Expose HTTP validation methods for other untrusted requests. |
| 120 static bool isAllowedHTTPMethod(const String&); | 121 static bool isAllowedHTTPMethod(const String&); |
| 121 static String uppercaseKnownHTTPMethod(const String&); | 122 static String uppercaseKnownHTTPMethod(const String&); |
| 122 static bool isAllowedHTTPHeader(const String&); | 123 static bool isAllowedHTTPHeader(const String&); |
| 123 | 124 |
| 124 void setResponseType(const String&, ExceptionCode&); | 125 void setResponseType(const String&, ExceptionCode&); |
| 125 String responseType(); | 126 String responseType(); |
| 126 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } | 127 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } |
| 127 | 128 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 221 |
| 221 RefPtr<SharedBuffer> m_binaryResponseBuilder; | 222 RefPtr<SharedBuffer> m_binaryResponseBuilder; |
| 222 mutable RefPtr<ArrayBuffer> m_responseArrayBuffer; | 223 mutable RefPtr<ArrayBuffer> m_responseArrayBuffer; |
| 223 | 224 |
| 224 bool m_error; | 225 bool m_error; |
| 225 | 226 |
| 226 bool m_uploadEventsAllowed; | 227 bool m_uploadEventsAllowed; |
| 227 bool m_uploadComplete; | 228 bool m_uploadComplete; |
| 228 | 229 |
| 229 bool m_sameOriginRequest; | 230 bool m_sameOriginRequest; |
| 231 bool m_allowCrossOriginRequests; |
| 230 | 232 |
| 231 // Used for onprogress tracking | 233 // Used for onprogress tracking |
| 232 long long m_receivedLength; | 234 long long m_receivedLength; |
| 233 | 235 |
| 234 unsigned m_lastSendLineNumber; | 236 unsigned m_lastSendLineNumber; |
| 235 String m_lastSendURL; | 237 String m_lastSendURL; |
| 236 ExceptionCode m_exceptionCode; | 238 ExceptionCode m_exceptionCode; |
| 237 | 239 |
| 238 EventTargetData m_eventTargetData; | 240 EventTargetData m_eventTargetData; |
| 239 | 241 |
| 240 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; | 242 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; |
| 241 | 243 |
| 242 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 244 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
| 243 ResponseTypeCode m_responseTypeCode; | 245 ResponseTypeCode m_responseTypeCode; |
| 244 | 246 |
| 245 RefPtr<SecurityOrigin> m_securityOrigin; | 247 RefPtr<SecurityOrigin> m_securityOrigin; |
| 246 }; | 248 }; |
| 247 | 249 |
| 248 } // namespace WebCore | 250 } // namespace WebCore |
| 249 | 251 |
| 250 #endif // XMLHttpRequest_h | 252 #endif // XMLHttpRequest_h |
| OLD | NEW |