| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // ActiveDOMObject | 83 // ActiveDOMObject |
| 84 // | 84 // |
| 85 // Note: suspend() is noop since ScopedPageLoadDeferrer calls | 85 // Note: suspend() is noop since ScopedPageLoadDeferrer calls |
| 86 // Page::setDefersLoading() and it defers delivery of events from the | 86 // Page::setDefersLoading() and it defers delivery of events from the |
| 87 // loader, and therefore the methods of this class for receiving | 87 // loader, and therefore the methods of this class for receiving |
| 88 // asynchronous events from the loader won't be invoked. | 88 // asynchronous events from the loader won't be invoked. |
| 89 virtual void stop() override; | 89 virtual void stop() override; |
| 90 | 90 |
| 91 virtual bool hasPendingActivity() const override; | 91 virtual bool hasPendingActivity() const override; |
| 92 | 92 |
| 93 virtual void trace(Visitor*) override; | 93 DECLARE_VIRTUAL_TRACE(); |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); | 96 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); |
| 97 | 97 |
| 98 virtual void didReceiveResponse(unsigned long, const ResourceResponse&, Pass
OwnPtr<WebDataConsumerHandle>) override; | 98 virtual void didReceiveResponse(unsigned long, const ResourceResponse&, Pass
OwnPtr<WebDataConsumerHandle>) override; |
| 99 virtual void didReceiveData(const char*, unsigned) override; | 99 virtual void didReceiveData(const char*, unsigned) override; |
| 100 virtual void didFinishLoading(unsigned long, double) override; | 100 virtual void didFinishLoading(unsigned long, double) override; |
| 101 virtual void didFail(const ResourceError&) override; | 101 virtual void didFail(const ResourceError&) override; |
| 102 virtual void didFailAccessControlCheck(const ResourceError&) override; | 102 virtual void didFailAccessControlCheck(const ResourceError&) override; |
| 103 virtual void didFailRedirectCheck() override; | 103 virtual void didFailRedirectCheck() override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 127 Vector<UChar> m_data; | 127 Vector<UChar> m_data; |
| 128 AtomicString m_currentlyParsedEventId; | 128 AtomicString m_currentlyParsedEventId; |
| 129 AtomicString m_lastEventId; | 129 AtomicString m_lastEventId; |
| 130 unsigned long long m_reconnectDelay; | 130 unsigned long long m_reconnectDelay; |
| 131 String m_eventStreamOrigin; | 131 String m_eventStreamOrigin; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif // EventSource_h | 136 #endif // EventSource_h |
| OLD | NEW |