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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 State readyState() const; | 71 State readyState() const; |
72 | 72 |
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); |
74 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
75 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
76 | 76 |
77 void close(); | 77 void close(); |
78 | 78 |
79 const AtomicString& interfaceName() const override; | 79 const AtomicString& interfaceName() const override; |
80 ExecutionContext* executionContext() const override; | 80 ExecutionContext* getExecutionContext() const override; |
81 | 81 |
82 // Note: We don't need to override suspend() because it is noop since | 82 // Note: We don't need to override suspend() because it is noop since |
83 // ScopedPageLoadDeferrer calls Page::setDefersLoading() and it defers | 83 // ScopedPageLoadDeferrer calls Page::setDefersLoading() and it defers |
84 // delivery of events from the loader, and therefore the methods of this | 84 // delivery of events from the loader, and therefore the methods of this |
85 // class for receiving asynchronous events from the loader won't be invoked. | 85 // class for receiving asynchronous events from the loader won't be invoked. |
86 void contextDestroyed() override; | 86 void contextDestroyed() override; |
87 | 87 |
88 bool hasPendingActivity() const override; | 88 bool hasPendingActivity() const override; |
89 | 89 |
90 DECLARE_VIRTUAL_TRACE(); | 90 DECLARE_VIRTUAL_TRACE(); |
(...skipping 26 matching lines...) Expand all Loading... |
117 RefPtr<ThreadableLoader> m_loader; | 117 RefPtr<ThreadableLoader> m_loader; |
118 Timer<EventSource> m_connectTimer; | 118 Timer<EventSource> m_connectTimer; |
119 | 119 |
120 unsigned long long m_reconnectDelay; | 120 unsigned long long m_reconnectDelay; |
121 String m_eventStreamOrigin; | 121 String m_eventStreamOrigin; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace blink | 124 } // namespace blink |
125 | 125 |
126 #endif // EventSource_h | 126 #endif // EventSource_h |
OLD | NEW |