OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Julien Chaffraix <jchaffraix@webkit.org> | 2 * Copyright (C) 2010 Julien Chaffraix <jchaffraix@webkit.org> |
3 * All right reserved. | 3 * All right reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef XMLHttpRequestProgressEventThrottle_h | 27 #ifndef XMLHttpRequestProgressEventThrottle_h |
28 #define XMLHttpRequestProgressEventThrottle_h | 28 #define XMLHttpRequestProgressEventThrottle_h |
29 | 29 |
30 #include "platform/Timer.h" | 30 #include "platform/Timer.h" |
31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
32 #include "wtf/Forward.h" | 32 #include "platform/wtf/Forward.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "platform/wtf/PassRefPtr.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class Event; | 37 class Event; |
38 class XMLHttpRequest; | 38 class XMLHttpRequest; |
39 | 39 |
40 // This class implements the XHR2 ProgressEvent dispatching: | 40 // This class implements the XHR2 ProgressEvent dispatching: |
41 // "dispatch a progress event named progress about every 50ms or for every | 41 // "dispatch a progress event named progress about every 50ms or for every |
42 // byte received, whichever is least frequent". | 42 // byte received, whichever is least frequent". |
43 // | 43 // |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 DeferredEvent deferred_; | 126 DeferredEvent deferred_; |
127 | 127 |
128 // True if any "progress" progress event has been dispatched since | 128 // True if any "progress" progress event has been dispatched since |
129 // |m_target|'s readyState changed. | 129 // |m_target|'s readyState changed. |
130 bool has_dispatched_progress_progress_event_; | 130 bool has_dispatched_progress_progress_event_; |
131 }; | 131 }; |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
134 | 134 |
135 #endif // XMLHttpRequestProgressEventThrottle_h | 135 #endif // XMLHttpRequestProgressEventThrottle_h |
OLD | NEW |