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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 // Dispatches an event. If suspended, just queues the given event. | 74 // Dispatches an event. If suspended, just queues the given event. |
75 void dispatchEvent(PassRefPtrWillBeRawPtr<Event>); | 75 void dispatchEvent(PassRefPtrWillBeRawPtr<Event>); |
76 | 76 |
77 virtual void fired() OVERRIDE; | 77 virtual void fired() OVERRIDE; |
78 void dispatchDeferredEvents(Timer<XMLHttpRequestProgressEventThrottle>*); | 78 void dispatchDeferredEvents(Timer<XMLHttpRequestProgressEventThrottle>*); |
79 bool flushDeferredProgressEvent(); | 79 bool flushDeferredProgressEvent(); |
80 void deliverProgressEvent(); | 80 void deliverProgressEvent(); |
81 | 81 |
82 bool hasEventToDispatch() const; | 82 bool hasEventToDispatch() const; |
83 | 83 |
84 // Weak pointer to our XMLHttpRequest object as it is the one holding us. | 84 // Weak pointer to our XMLHttpRequest object as it is the one holding us. |
Mads Ager (chromium)
2014/06/13 12:14:58
Maybe update the comment to say that with oilpan t
sof
2014/06/13 12:31:55
Done, updated comment.
| |
85 EventTarget* m_target; | 85 RawPtrWillBeMember<EventTarget> m_target; |
86 | 86 |
87 bool m_lengthComputable; | 87 bool m_lengthComputable; |
88 unsigned long long m_loaded; | 88 unsigned long long m_loaded; |
89 unsigned long long m_total; | 89 unsigned long long m_total; |
90 | 90 |
91 bool m_deferEvents; | 91 bool m_deferEvents; |
92 RefPtrWillBeMember<Event> m_deferredProgressEvent; | 92 RefPtrWillBeMember<Event> m_deferredProgressEvent; |
93 WillBeHeapVector<RefPtrWillBeMember<Event> > m_deferredEvents; | 93 WillBeHeapVector<RefPtrWillBeMember<Event> > m_deferredEvents; |
94 Timer<XMLHttpRequestProgressEventThrottle> m_dispatchDeferredEventsTimer; | 94 Timer<XMLHttpRequestProgressEventThrottle> m_dispatchDeferredEventsTimer; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace WebCore | 97 } // namespace WebCore |
98 | 98 |
99 #endif // XMLHttpRequestProgressEventThrottle_h | 99 #endif // XMLHttpRequestProgressEventThrottle_h |
OLD | NEW |