| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2009, 2012 Ericsson AB. All rights reserved. |
| 3 * Copyright (C) 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2010 Apple Inc. All rights 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 75 | 75 |
| 76 void close(); | 76 void close(); |
| 77 | 77 |
| 78 virtual const AtomicString& interfaceName() const OVERRIDE; | 78 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 79 virtual ExecutionContext* executionContext() const OVERRIDE; | 79 virtual ExecutionContext* executionContext() const OVERRIDE; |
| 80 | 80 |
| 81 // ActiveDOMObject | 81 // ActiveDOMObject |
| 82 // | 82 // |
| 83 // Note: suspend() is noop since PageGroupLoadDeferrer calls | 83 // Note: suspend() is noop since ScopedPageLoadDeferrer calls |
| 84 // Page::setDefersLoading() and it defers delivery of events from the | 84 // Page::setDefersLoading() and it defers delivery of events from the |
| 85 // loader, and therefore the methods of this class for receiving | 85 // loader, and therefore the methods of this class for receiving |
| 86 // asynchronous events from the loader won't be invoked. | 86 // asynchronous events from the loader won't be invoked. |
| 87 virtual void stop() OVERRIDE; | 87 virtual void stop() OVERRIDE; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 EventSource(ExecutionContext*, const KURL&, const Dictionary&); | 90 EventSource(ExecutionContext*, const KURL&, const Dictionary&); |
| 91 | 91 |
| 92 virtual void didReceiveResponse(unsigned long, const ResourceResponse&) OVER
RIDE; | 92 virtual void didReceiveResponse(unsigned long, const ResourceResponse&) OVER
RIDE; |
| 93 virtual void didReceiveData(const char*, int) OVERRIDE; | 93 virtual void didReceiveData(const char*, int) OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 121 Vector<UChar> m_data; | 121 Vector<UChar> m_data; |
| 122 AtomicString m_currentlyParsedEventId; | 122 AtomicString m_currentlyParsedEventId; |
| 123 AtomicString m_lastEventId; | 123 AtomicString m_lastEventId; |
| 124 unsigned long long m_reconnectDelay; | 124 unsigned long long m_reconnectDelay; |
| 125 String m_eventStreamOrigin; | 125 String m_eventStreamOrigin; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace WebCore | 128 } // namespace WebCore |
| 129 | 129 |
| 130 #endif // EventSource_h | 130 #endif // EventSource_h |
| OLD | NEW |