namespace blink {
-class Dictionary;
+class EventSourceInit;
class ExceptionState;
class MessageEvent;
class ResourceResponse;
class TextResourceDecoder;
class ThreadableLoader;
-class EventSource FINAL : public RefCountedWillBeRefCountedGarbageCollected<EventSource>, public EventTargetWithInlineData, private ThreadableLoaderClient, public ActiveDOMObject {
- WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
+class EventSource FINAL : public RefCountedWillBeGarbageCollectedFinalized<EventSource>, public EventTargetWithInlineData, private ThreadableLoaderClient, public ActiveDOMObject {
+ DEFINE_WRAPPERTYPEINFO();
REFCOUNTED_EVENT_TARGET(EventSource);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(EventSource);
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const String& url, const Dictionary&, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const String& url, const EventSourceInit&, ExceptionState&);
virtual ~EventSource();
static const unsigned long long defaultReconnectDelay;
virtual bool hasPendingActivity() const OVERRIDE;
private:
- EventSource(ExecutionContext*, const KURL&, const Dictionary&);
+ EventSource(ExecutionContext*, const KURL&, const EventSourceInit&);
virtual void didReceiveResponse(unsigned long, const ResourceResponse&) OVERRIDE;
virtual void didReceiveData(const char*, int) OVERRIDE;