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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 class Dictionary; | 47 class Dictionary; |
48 class ExceptionState; | 48 class ExceptionState; |
49 class MessageEvent; | 49 class MessageEvent; |
50 class ResourceResponse; | 50 class ResourceResponse; |
51 class TextResourceDecoder; | 51 class TextResourceDecoder; |
52 class ThreadableLoader; | 52 class ThreadableLoader; |
53 | 53 |
54 class EventSource FINAL : public RefCountedWillBeRefCountedGarbageCollected<Even
tSource>, public ScriptWrappable, public EventTargetWithInlineData, private Thre
adableLoaderClient, public ActiveDOMObject { | 54 class EventSource FINAL : public RefCountedWillBeRefCountedGarbageCollected<Even
tSource>, public ScriptWrappable, public EventTargetWithInlineData, private Thre
adableLoaderClient, public ActiveDOMObject { |
55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
56 DECLARE_GC_INFO; | |
57 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<E
ventSource>); | 56 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<E
ventSource>); |
58 public: | 57 public: |
59 static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const S
tring& url, const Dictionary&, ExceptionState&); | 58 static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const S
tring& url, const Dictionary&, ExceptionState&); |
60 virtual ~EventSource(); | 59 virtual ~EventSource(); |
61 | 60 |
62 static const unsigned long long defaultReconnectDelay; | 61 static const unsigned long long defaultReconnectDelay; |
63 | 62 |
64 String url() const; | 63 String url() const; |
65 bool withCredentials() const; | 64 bool withCredentials() const; |
66 | 65 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 Vector<UChar> m_data; | 124 Vector<UChar> m_data; |
126 AtomicString m_currentlyParsedEventId; | 125 AtomicString m_currentlyParsedEventId; |
127 AtomicString m_lastEventId; | 126 AtomicString m_lastEventId; |
128 unsigned long long m_reconnectDelay; | 127 unsigned long long m_reconnectDelay; |
129 String m_eventStreamOrigin; | 128 String m_eventStreamOrigin; |
130 }; | 129 }; |
131 | 130 |
132 } // namespace WebCore | 131 } // namespace WebCore |
133 | 132 |
134 #endif // EventSource_h | 133 #endif // EventSource_h |
OLD | NEW |