| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 ResponseTypeText, | 88 ResponseTypeText, |
| 89 ResponseTypeJSON, | 89 ResponseTypeJSON, |
| 90 ResponseTypeDocument, | 90 ResponseTypeDocument, |
| 91 ResponseTypeBlob, | 91 ResponseTypeBlob, |
| 92 ResponseTypeArrayBuffer, | 92 ResponseTypeArrayBuffer, |
| 93 ResponseTypeLegacyStream, | 93 ResponseTypeLegacyStream, |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 // ActiveDOMObject | 96 // ActiveDOMObject |
| 97 void contextDestroyed() override; | 97 void contextDestroyed() override; |
| 98 ExecutionContext* executionContext() const override; | 98 ExecutionContext* getExecutionContext() const override; |
| 99 bool hasPendingActivity() const override; | 99 bool hasPendingActivity() const override; |
| 100 void suspend() override; | 100 void suspend() override; |
| 101 void resume() override; | 101 void resume() override; |
| 102 void stop() override; | 102 void stop() override; |
| 103 | 103 |
| 104 // XMLHttpRequestEventTarget | 104 // XMLHttpRequestEventTarget |
| 105 const AtomicString& interfaceName() const override; | 105 const AtomicString& interfaceName() const override; |
| 106 | 106 |
| 107 // JavaScript attributes and methods | 107 // JavaScript attributes and methods |
| 108 const KURL& url() const { return m_url; } | 108 const KURL& url() const { return m_url; } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 #if !ENABLE(OILPAN) | 146 #if !ENABLE(OILPAN) |
| 147 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); | 147 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); |
| 148 #endif | 148 #endif |
| 149 DECLARE_VIRTUAL_TRACE(); | 149 DECLARE_VIRTUAL_TRACE(); |
| 150 | 150 |
| 151 private: | 151 private: |
| 152 class BlobLoader; | 152 class BlobLoader; |
| 153 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); | 153 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); |
| 154 | 154 |
| 155 Document* document() const; | 155 Document* document() const; |
| 156 SecurityOrigin* securityOrigin() const; | 156 SecurityOrigin* getSecurityOrigin() const; |
| 157 | 157 |
| 158 void didSendData(unsigned long long bytesSent, unsigned long long totalBytes
ToBeSent) override; | 158 void didSendData(unsigned long long bytesSent, unsigned long long totalBytes
ToBeSent) override; |
| 159 void didReceiveResponse(unsigned long identifier, const ResourceResponse&, P
assOwnPtr<WebDataConsumerHandle>) override; | 159 void didReceiveResponse(unsigned long identifier, const ResourceResponse&, P
assOwnPtr<WebDataConsumerHandle>) override; |
| 160 void didReceiveData(const char* data, unsigned dataLength) override; | 160 void didReceiveData(const char* data, unsigned dataLength) override; |
| 161 // When responseType is set to "blob", didDownloadData() is called instead | 161 // When responseType is set to "blob", didDownloadData() is called instead |
| 162 // of didReceiveData(). | 162 // of didReceiveData(). |
| 163 void didDownloadData(int dataLength) override; | 163 void didDownloadData(int dataLength) override; |
| 164 void didFinishLoading(unsigned long identifier, double finishTime) override; | 164 void didFinishLoading(unsigned long identifier, double finishTime) override; |
| 165 void didFail(const ResourceError&) override; | 165 void didFail(const ResourceError&) override; |
| 166 void didFailRedirectCheck() override; | 166 void didFailRedirectCheck() override; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 bool m_sameOriginRequest; | 315 bool m_sameOriginRequest; |
| 316 // True iff the ongoing resource loading is using the downloadToFile | 316 // True iff the ongoing resource loading is using the downloadToFile |
| 317 // option. | 317 // option. |
| 318 bool m_downloadingToFile; | 318 bool m_downloadingToFile; |
| 319 bool m_responseTextOverflow; | 319 bool m_responseTextOverflow; |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 } // namespace blink | 322 } // namespace blink |
| 323 | 323 |
| 324 #endif // XMLHttpRequest_h | 324 #endif // XMLHttpRequest_h |
| OLD | NEW |