| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class ThreadableLoader; | 49 class ThreadableLoader; |
| 50 | 50 |
| 51 class EventSource : public RefCountedGarbageCollected<EventSource>, public Event
Target, private ThreadableLoaderClient, public ActiveDOMObject { | 51 class EventSource : public RefCountedGarbageCollected<EventSource>, public Event
Target, private ThreadableLoaderClient, public ActiveDOMObject { |
| 52 DECLARE_GC_INFO | 52 DECLARE_GC_INFO |
| 53 public: | 53 public: |
| 54 static PassRefPtr<EventSource> create(ScriptExecutionContext*, const String&
url, const Dictionary&, ExceptionCode&); | 54 static PassRefPtr<EventSource> create(ScriptExecutionContext*, const String&
url, const Dictionary&, ExceptionCode&); |
| 55 virtual ~EventSource(); | 55 virtual ~EventSource(); |
| 56 | 56 |
| 57 virtual void trace(Visitor*) { } | 57 virtual void trace(Visitor*) { } |
| 58 | 58 |
| 59 virtual void visitWith(Visitor* visitor) const OVERRIDE | 59 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 60 { | 60 { |
| 61 visitor->visit(this); | 61 visitor->mark(this); |
| 62 } | 62 } |
| 63 | 63 |
| 64 static const unsigned long long defaultReconnectDelay; | 64 static const unsigned long long defaultReconnectDelay; |
| 65 | 65 |
| 66 String url() const; | 66 String url() const; |
| 67 bool withCredentials() const; | 67 bool withCredentials() const; |
| 68 | 68 |
| 69 typedef short State; | 69 typedef short State; |
| 70 static const State CONNECTING = 0; | 70 static const State CONNECTING = 0; |
| 71 static const State OPEN = 1; | 71 static const State OPEN = 1; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 String m_lastEventId; | 126 String m_lastEventId; |
| 127 unsigned long long m_reconnectDelay; | 127 unsigned long long m_reconnectDelay; |
| 128 String m_eventStreamOrigin; | 128 String m_eventStreamOrigin; |
| 129 | 129 |
| 130 EventTargetData m_eventTargetData; | 130 EventTargetData m_eventTargetData; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace WebCore | 133 } // namespace WebCore |
| 134 | 134 |
| 135 #endif // EventSource_h | 135 #endif // EventSource_h |
| OLD | NEW |