| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class Dictionary; | 46 class Dictionary; |
| 47 class ExceptionState; | 47 class ExceptionState; |
| 48 class MessageEvent; | 48 class MessageEvent; |
| 49 class ResourceResponse; | 49 class ResourceResponse; |
| 50 class TextResourceDecoder; | 50 class TextResourceDecoder; |
| 51 class ThreadableLoader; | 51 class ThreadableLoader; |
| 52 | 52 |
| 53 class EventSource FINAL : public RefCountedWillBeGarbageCollectedFinalized<Event
Source>, public EventTargetWithInlineData, private ThreadableLoaderClient, publi
c ActiveDOMObject { | 53 class EventSource FINAL : public RefCountedWillBeGarbageCollectedFinalized<Event
Source>, public EventTargetWithInlineData, private ThreadableLoaderClient, publi
c ActiveDOMObject { |
| 54 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 54 DEFINE_WRAPPERTYPEINFO(); |
| 55 REFCOUNTED_EVENT_TARGET(EventSource); | 55 REFCOUNTED_EVENT_TARGET(EventSource); |
| 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(EventSource); | 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(EventSource); |
| 57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 57 public: | 58 public: |
| 58 static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const S
tring& url, const Dictionary&, ExceptionState&); | 59 static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const S
tring& url, const Dictionary&, ExceptionState&); |
| 59 virtual ~EventSource(); | 60 virtual ~EventSource(); |
| 60 | 61 |
| 61 static const unsigned long long defaultReconnectDelay; | 62 static const unsigned long long defaultReconnectDelay; |
| 62 | 63 |
| 63 String url() const; | 64 String url() const; |
| 64 bool withCredentials() const; | 65 bool withCredentials() const; |
| 65 | 66 |
| 66 typedef short State; | 67 typedef short State; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 Vector<UChar> m_data; | 125 Vector<UChar> m_data; |
| 125 AtomicString m_currentlyParsedEventId; | 126 AtomicString m_currentlyParsedEventId; |
| 126 AtomicString m_lastEventId; | 127 AtomicString m_lastEventId; |
| 127 unsigned long long m_reconnectDelay; | 128 unsigned long long m_reconnectDelay; |
| 128 String m_eventStreamOrigin; | 129 String m_eventStreamOrigin; |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace blink | 132 } // namespace blink |
| 132 | 133 |
| 133 #endif // EventSource_h | 134 #endif // EventSource_h |
| OLD | NEW |