| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/xmlhttprequest/XMLHttpRequestUpload.h" | 26 #include "core/xmlhttprequest/XMLHttpRequestUpload.h" |
| 27 | 27 |
| 28 #include "core/EventTypeNames.h" | 28 #include "core/EventTypeNames.h" |
| 29 #include "core/events/ProgressEvent.h" | 29 #include "core/events/ProgressEvent.h" |
| 30 #include "core/probe/CoreProbes.h" | 30 #include "core/probe/CoreProbes.h" |
| 31 #include "wtf/Assertions.h" | 31 #include "platform/wtf/Assertions.h" |
| 32 #include "wtf/text/AtomicString.h" | 32 #include "platform/wtf/text/AtomicString.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xml_http_request) | 36 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xml_http_request) |
| 37 : xml_http_request_(xml_http_request), | 37 : xml_http_request_(xml_http_request), |
| 38 last_bytes_sent_(0), | 38 last_bytes_sent_(0), |
| 39 last_total_bytes_to_be_sent_(0) {} | 39 last_total_bytes_to_be_sent_(0) {} |
| 40 | 40 |
| 41 const AtomicString& XMLHttpRequestUpload::InterfaceName() const { | 41 const AtomicString& XMLHttpRequestUpload::InterfaceName() const { |
| 42 return EventTargetNames::XMLHttpRequestUpload; | 42 return EventTargetNames::XMLHttpRequestUpload; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 DispatchEventAndLoadEnd(type, length_computable, last_bytes_sent_, | 83 DispatchEventAndLoadEnd(type, length_computable, last_bytes_sent_, |
| 84 last_total_bytes_to_be_sent_); | 84 last_total_bytes_to_be_sent_); |
| 85 } | 85 } |
| 86 | 86 |
| 87 DEFINE_TRACE(XMLHttpRequestUpload) { | 87 DEFINE_TRACE(XMLHttpRequestUpload) { |
| 88 visitor->Trace(xml_http_request_); | 88 visitor->Trace(xml_http_request_); |
| 89 XMLHttpRequestEventTarget::Trace(visitor); | 89 XMLHttpRequestEventTarget::Trace(visitor); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| OLD | NEW |