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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Expose HTTP validation methods for other untrusted requests. | 128 // Expose HTTP validation methods for other untrusted requests. |
129 static bool isAllowedHTTPMethod(const String&); | 129 static bool isAllowedHTTPMethod(const String&); |
130 static AtomicString uppercaseKnownHTTPMethod(const AtomicString&); | 130 static AtomicString uppercaseKnownHTTPMethod(const AtomicString&); |
131 static bool isAllowedHTTPHeader(const String&); | 131 static bool isAllowedHTTPHeader(const String&); |
132 | 132 |
133 void setResponseType(const String&, ExceptionState&); | 133 void setResponseType(const String&, ExceptionState&); |
134 String responseType(); | 134 String responseType(); |
135 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } | 135 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } |
136 | 136 |
| 137 String responseURL(); |
| 138 |
137 // response attribute has custom getter. | 139 // response attribute has custom getter. |
138 ArrayBuffer* responseArrayBuffer(); | 140 ArrayBuffer* responseArrayBuffer(); |
139 | 141 |
140 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lin
eNumber; } | 142 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lin
eNumber; } |
141 void setLastSendURL(const String& url) { m_lastSendURL = url; } | 143 void setLastSendURL(const String& url) { m_lastSendURL = url; } |
142 | 144 |
143 XMLHttpRequestUpload* upload(); | 145 XMLHttpRequestUpload* upload(); |
144 | 146 |
145 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); | 147 DEFINE_ATTRIBUTE_EVENT_LISTENER(readystatechange); |
146 | 148 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 258 |
257 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 259 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
258 ResponseTypeCode m_responseTypeCode; | 260 ResponseTypeCode m_responseTypeCode; |
259 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; | 261 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; |
260 RefPtr<SecurityOrigin> m_securityOrigin; | 262 RefPtr<SecurityOrigin> m_securityOrigin; |
261 }; | 263 }; |
262 | 264 |
263 } // namespace WebCore | 265 } // namespace WebCore |
264 | 266 |
265 #endif // XMLHttpRequest_h | 267 #endif // XMLHttpRequest_h |
OLD | NEW |