| 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 // Non-Oilpan, keep a weak pointer to our XMLHttpRequest object as it is |
| 85 EventTarget* m_target; | 85 // the one holding us. With Oilpan, a simple strong Member can be used - |
| 86 // this XMLHttpRequestProgressEventThrottle (part) object dies together |
| 87 // with the XMLHttpRequest object. |
| 88 RawPtrWillBeMember<EventTarget> m_target; |
| 86 | 89 |
| 87 bool m_lengthComputable; | 90 bool m_lengthComputable; |
| 88 unsigned long long m_loaded; | 91 unsigned long long m_loaded; |
| 89 unsigned long long m_total; | 92 unsigned long long m_total; |
| 90 | 93 |
| 91 bool m_deferEvents; | 94 bool m_deferEvents; |
| 92 RefPtrWillBeMember<Event> m_deferredProgressEvent; | 95 RefPtrWillBeMember<Event> m_deferredProgressEvent; |
| 93 WillBeHeapVector<RefPtrWillBeMember<Event> > m_deferredEvents; | 96 WillBeHeapVector<RefPtrWillBeMember<Event> > m_deferredEvents; |
| 94 Timer<XMLHttpRequestProgressEventThrottle> m_dispatchDeferredEventsTimer; | 97 Timer<XMLHttpRequestProgressEventThrottle> m_dispatchDeferredEventsTimer; |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 } // namespace WebCore | 100 } // namespace WebCore |
| 98 | 101 |
| 99 #endif // XMLHttpRequestProgressEventThrottle_h | 102 #endif // XMLHttpRequestProgressEventThrottle_h |
| OLD | NEW |