| 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 26 matching lines...) Expand all Loading... |
| 37 , m_lastBytesSent(0) | 37 , m_lastBytesSent(0) |
| 38 , m_lastTotalBytesToBeSent(0) | 38 , m_lastTotalBytesToBeSent(0) |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| 42 const AtomicString& XMLHttpRequestUpload::interfaceName() const | 42 const AtomicString& XMLHttpRequestUpload::interfaceName() const |
| 43 { | 43 { |
| 44 return EventTargetNames::XMLHttpRequestUpload; | 44 return EventTargetNames::XMLHttpRequestUpload; |
| 45 } | 45 } |
| 46 | 46 |
| 47 ExecutionContext* XMLHttpRequestUpload::executionContext() const | 47 ExecutionContext* XMLHttpRequestUpload::getExecutionContext() const |
| 48 { | 48 { |
| 49 return m_xmlHttpRequest->executionContext(); | 49 return m_xmlHttpRequest->getExecutionContext(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void XMLHttpRequestUpload::dispatchProgressEvent(unsigned long long bytesSent, u
nsigned long long totalBytesToBeSent) | 52 void XMLHttpRequestUpload::dispatchProgressEvent(unsigned long long bytesSent, u
nsigned long long totalBytesToBeSent) |
| 53 { | 53 { |
| 54 m_lastBytesSent = bytesSent; | 54 m_lastBytesSent = bytesSent; |
| 55 m_lastTotalBytesToBeSent = totalBytesToBeSent; | 55 m_lastTotalBytesToBeSent = totalBytesToBeSent; |
| 56 dispatchEvent(ProgressEvent::create(EventTypeNames::progress, true, bytesSen
t, totalBytesToBeSent)); | 56 dispatchEvent(ProgressEvent::create(EventTypeNames::progress, true, bytesSen
t, totalBytesToBeSent)); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(const AtomicString& type, boo
l lengthComputable, unsigned long long bytesSent, unsigned long long total) | 59 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(const AtomicString& type, boo
l lengthComputable, unsigned long long bytesSent, unsigned long long total) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 70 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal
BytesToBeSent); | 70 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal
BytesToBeSent); |
| 71 } | 71 } |
| 72 | 72 |
| 73 DEFINE_TRACE(XMLHttpRequestUpload) | 73 DEFINE_TRACE(XMLHttpRequestUpload) |
| 74 { | 74 { |
| 75 visitor->trace(m_xmlHttpRequest); | 75 visitor->trace(m_xmlHttpRequest); |
| 76 XMLHttpRequestEventTarget::trace(visitor); | 76 XMLHttpRequestEventTarget::trace(visitor); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| OLD | NEW |