Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / page / EventSource.h
index 931737b..fceacbb 100644 (file)
 
 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;
@@ -90,7 +91,7 @@ public:
     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;