| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 return adoptPtrWillBeNoop(new XMLHttpRequestUpload(xmlHttpRequest)); | 47 return adoptPtrWillBeNoop(new XMLHttpRequestUpload(xmlHttpRequest)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 #if !ENABLE(OILPAN) | 50 #if !ENABLE(OILPAN) |
| 51 void ref() { m_xmlHttpRequest->ref(); } | 51 void ref() { m_xmlHttpRequest->ref(); } |
| 52 void deref() { m_xmlHttpRequest->deref(); } | 52 void deref() { m_xmlHttpRequest->deref(); } |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 XMLHttpRequest* xmlHttpRequest() const { return m_xmlHttpRequest; } | 55 XMLHttpRequest* xmlHttpRequest() const { return m_xmlHttpRequest; } |
| 56 | 56 |
| 57 virtual const AtomicString& interfaceName() const override; | 57 const AtomicString& interfaceName() const override; |
| 58 virtual ExecutionContext* executionContext() const override; | 58 ExecutionContext* executionContext() const override; |
| 59 | 59 |
| 60 void dispatchEventAndLoadEnd(const AtomicString&, bool, unsigned long long,
unsigned long long); | 60 void dispatchEventAndLoadEnd(const AtomicString&, bool, unsigned long long,
unsigned long long); |
| 61 void dispatchProgressEvent(unsigned long long, unsigned long long); | 61 void dispatchProgressEvent(unsigned long long, unsigned long long); |
| 62 | 62 |
| 63 void handleRequestError(const AtomicString&); | 63 void handleRequestError(const AtomicString&); |
| 64 | 64 |
| 65 DECLARE_VIRTUAL_TRACE(); | 65 DECLARE_VIRTUAL_TRACE(); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 explicit XMLHttpRequestUpload(XMLHttpRequest*); | 68 explicit XMLHttpRequestUpload(XMLHttpRequest*); |
| 69 | 69 |
| 70 #if !ENABLE(OILPAN) | 70 #if !ENABLE(OILPAN) |
| 71 virtual void refEventTarget() override { ref(); } | 71 void refEventTarget() override { ref(); } |
| 72 virtual void derefEventTarget() override { deref(); } | 72 void derefEventTarget() override { deref(); } |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 RawPtrWillBeMember<XMLHttpRequest> m_xmlHttpRequest; | 75 RawPtrWillBeMember<XMLHttpRequest> m_xmlHttpRequest; |
| 76 | 76 |
| 77 // Last progress event values; used when issuing the | 77 // Last progress event values; used when issuing the |
| 78 // required 'progress' event on a request error or abort. | 78 // required 'progress' event on a request error or abort. |
| 79 unsigned long long m_lastBytesSent; | 79 unsigned long long m_lastBytesSent; |
| 80 unsigned long long m_lastTotalBytesToBeSent; | 80 unsigned long long m_lastTotalBytesToBeSent; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // XMLHttpRequestUpload_h | 85 #endif // XMLHttpRequestUpload_h |
| OLD | NEW |