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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 const AtomicString& interfaceName() const override; | 83 const AtomicString& interfaceName() const override; |
84 ExecutionContext* getExecutionContext() const override; | 84 ExecutionContext* getExecutionContext() const override; |
85 | 85 |
86 // ActiveDOMObject | 86 // ActiveDOMObject |
87 // | 87 // |
88 // Note: suspend() is noop since ScopedPageLoadDeferrer calls | 88 // Note: suspend() is noop since ScopedPageLoadDeferrer calls |
89 // Page::setDefersLoading() and it defers delivery of events from the | 89 // Page::setDefersLoading() and it defers delivery of events from the |
90 // loader, and therefore the methods of this class for receiving | 90 // loader, and therefore the methods of this class for receiving |
91 // asynchronous events from the loader won't be invoked. | 91 // asynchronous events from the loader won't be invoked. |
92 void stop() override; | 92 void contextDestroyed() override; |
93 | 93 |
94 // ScriptWrappable | 94 // ScriptWrappable |
95 bool hasPendingActivity() const final; | 95 bool hasPendingActivity() const final; |
96 | 96 |
97 DECLARE_VIRTUAL_TRACE(); | 97 DECLARE_VIRTUAL_TRACE(); |
98 | 98 |
99 private: | 99 private: |
100 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); | 100 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); |
101 | 101 |
102 void didReceiveResponse(unsigned long, | 102 void didReceiveResponse(unsigned long, |
(...skipping 30 matching lines...) Expand all Loading... |
133 Member<ThreadableLoader> m_loader; | 133 Member<ThreadableLoader> m_loader; |
134 Timer<EventSource> m_connectTimer; | 134 Timer<EventSource> m_connectTimer; |
135 | 135 |
136 unsigned long long m_reconnectDelay; | 136 unsigned long long m_reconnectDelay; |
137 String m_eventStreamOrigin; | 137 String m_eventStreamOrigin; |
138 }; | 138 }; |
139 | 139 |
140 } // namespace blink | 140 } // namespace blink |
141 | 141 |
142 #endif // EventSource_h | 142 #endif // EventSource_h |
OLD | NEW |