| 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 12 matching lines...) Expand all Loading... |
| 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 #ifndef XMLHttpRequestUpload_h | 26 #ifndef XMLHttpRequestUpload_h |
| 27 #define XMLHttpRequestUpload_h | 27 #define XMLHttpRequestUpload_h |
| 28 | 28 |
| 29 #include "bindings/core/v8/ScriptWrappable.h" | 29 #include "bindings/core/v8/ScriptWrappable.h" |
| 30 #include "core/xmlhttprequest/XMLHttpRequest.h" | 30 #include "core/xmlhttprequest/XMLHttpRequest.h" |
| 31 #include "core/xmlhttprequest/XMLHttpRequestEventTarget.h" | 31 #include "core/xmlhttprequest/XMLHttpRequestEventTarget.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/Forward.h" | 33 #include "platform/wtf/Forward.h" |
| 34 #include "wtf/PassRefPtr.h" | 34 #include "platform/wtf/PassRefPtr.h" |
| 35 #include "wtf/RefPtr.h" | 35 #include "platform/wtf/RefPtr.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class ExecutionContext; | 39 class ExecutionContext; |
| 40 | 40 |
| 41 class XMLHttpRequestUpload final : public XMLHttpRequestEventTarget { | 41 class XMLHttpRequestUpload final : public XMLHttpRequestEventTarget { |
| 42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 43 | 43 |
| 44 public: | 44 public: |
| 45 static XMLHttpRequestUpload* Create(XMLHttpRequest* xml_http_request) { | 45 static XMLHttpRequestUpload* Create(XMLHttpRequest* xml_http_request) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 68 | 68 |
| 69 // Last progress event values; used when issuing the | 69 // Last progress event values; used when issuing the |
| 70 // required 'progress' event on a request error or abort. | 70 // required 'progress' event on a request error or abort. |
| 71 unsigned long long last_bytes_sent_; | 71 unsigned long long last_bytes_sent_; |
| 72 unsigned long long last_total_bytes_to_be_sent_; | 72 unsigned long long last_total_bytes_to_be_sent_; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif // XMLHttpRequestUpload_h | 77 #endif // XMLHttpRequestUpload_h |
| OLD | NEW |