Chromium Code Reviews| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 | 151 |
| 152 virtual void refEventTarget() OVERRIDE { ref(); } | 152 virtual void refEventTarget() OVERRIDE { ref(); } |
| 153 virtual void derefEventTarget() OVERRIDE { deref(); } | 153 virtual void derefEventTarget() OVERRIDE { deref(); } |
| 154 | 154 |
| 155 Document* document() const; | 155 Document* document() const; |
| 156 SecurityOrigin* securityOrigin() const; | 156 SecurityOrigin* securityOrigin() const; |
| 157 | 157 |
| 158 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent); | 158 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent); |
| 159 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&); | 159 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&); |
| 160 virtual void didReceiveData(const char* data, int dataLength); | 160 virtual void didReceiveData(const char* data, int dataLength); |
| 161 | |
|
tyoshino (SeeGerritForStatus)
2013/09/19 06:58:46
no need to have a blank line here. let's keep thes
yusukesuzuki
2013/09/19 07:19:06
Done.
| |
| 162 // When "blob" is specified as the responseType attribute, didDownloadData | |
| 163 // is called instead of didReceiveData. | |
| 164 virtual void didDownloadData(int dataLength); | |
| 161 virtual void didFinishLoading(unsigned long identifier, double finishTime); | 165 virtual void didFinishLoading(unsigned long identifier, double finishTime); |
| 162 virtual void didFail(const ResourceError&); | 166 virtual void didFail(const ResourceError&); |
| 163 virtual void didFailRedirectCheck(); | 167 virtual void didFailRedirectCheck(); |
| 164 | 168 |
| 165 String responseMIMEType() const; | 169 String responseMIMEType() const; |
| 166 bool responseIsXML() const; | 170 bool responseIsXML() const; |
| 167 | 171 |
| 168 bool areMethodAndURLValidForSend(); | 172 bool areMethodAndURLValidForSend(); |
| 169 | 173 |
| 170 bool initSend(ExceptionState&); | 174 bool initSend(ExceptionState&); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 | 239 |
| 236 // An enum corresponding to the allowed string values for the responseType a ttribute. | 240 // An enum corresponding to the allowed string values for the responseType a ttribute. |
| 237 ResponseTypeCode m_responseTypeCode; | 241 ResponseTypeCode m_responseTypeCode; |
| 238 Timer<XMLHttpRequest> m_protectionTimer; | 242 Timer<XMLHttpRequest> m_protectionTimer; |
| 239 RefPtr<SecurityOrigin> m_securityOrigin; | 243 RefPtr<SecurityOrigin> m_securityOrigin; |
| 240 }; | 244 }; |
| 241 | 245 |
| 242 } // namespace WebCore | 246 } // namespace WebCore |
| 243 | 247 |
| 244 #endif // XMLHttpRequest_h | 248 #endif // XMLHttpRequest_h |
| OLD | NEW |