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 20 matching lines...) Expand all Loading... |
31 #include "wtf/Assertions.h" | 31 #include "wtf/Assertions.h" |
32 #include "wtf/text/AtomicString.h" | 32 #include "wtf/text/AtomicString.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest) | 36 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest) |
37 : m_xmlHttpRequest(xmlHttpRequest) | 37 : m_xmlHttpRequest(xmlHttpRequest) |
38 , m_lastBytesSent(0) | 38 , m_lastBytesSent(0) |
39 , m_lastTotalBytesToBeSent(0) | 39 , m_lastTotalBytesToBeSent(0) |
40 { | 40 { |
41 ScriptWrappable::init(this); | |
42 } | 41 } |
43 | 42 |
44 const AtomicString& XMLHttpRequestUpload::interfaceName() const | 43 const AtomicString& XMLHttpRequestUpload::interfaceName() const |
45 { | 44 { |
46 return EventTargetNames::XMLHttpRequestUpload; | 45 return EventTargetNames::XMLHttpRequestUpload; |
47 } | 46 } |
48 | 47 |
49 ExecutionContext* XMLHttpRequestUpload::executionContext() const | 48 ExecutionContext* XMLHttpRequestUpload::executionContext() const |
50 { | 49 { |
51 return m_xmlHttpRequest->executionContext(); | 50 return m_xmlHttpRequest->executionContext(); |
(...skipping 20 matching lines...) Expand all Loading... |
72 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal
BytesToBeSent); | 71 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal
BytesToBeSent); |
73 } | 72 } |
74 | 73 |
75 void XMLHttpRequestUpload::trace(Visitor* visitor) | 74 void XMLHttpRequestUpload::trace(Visitor* visitor) |
76 { | 75 { |
77 visitor->trace(m_xmlHttpRequest); | 76 visitor->trace(m_xmlHttpRequest); |
78 XMLHttpRequestEventTarget::trace(visitor); | 77 XMLHttpRequestEventTarget::trace(visitor); |
79 } | 78 } |
80 | 79 |
81 } // namespace blink | 80 } // namespace blink |
OLD | NEW |