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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class Dictionary; | 46 class Dictionary; |
47 class MessageEvent; | 47 class MessageEvent; |
48 class ResourceResponse; | 48 class ResourceResponse; |
49 class TextResourceDecoder; | 49 class TextResourceDecoder; |
50 class ThreadableLoader; | 50 class ThreadableLoader; |
51 | 51 |
52 class EventSource : public RefCounted<EventSource>, public ScriptWrappable, publ
ic EventTarget, private ThreadableLoaderClient, public ActiveDOMObject { | 52 class EventSource : public EventTarget, public RefCounted<EventSource>, public
ScriptWrappable, private ThreadableLoaderClient, public ActiveDOMObject { |
53 WTF_MAKE_FAST_ALLOCATED; | 53 WTF_MAKE_FAST_ALLOCATED; |
54 public: | 54 public: |
55 static PassRefPtr<EventSource> create(ScriptExecutionContext*, const String&
url, const Dictionary&, ExceptionCode&); | 55 static PassRefPtr<EventSource> create(ScriptExecutionContext*, const String&
url, const Dictionary&, ExceptionCode&); |
56 virtual ~EventSource(); | 56 virtual ~EventSource(); |
57 | 57 |
58 static const unsigned long long defaultReconnectDelay; | 58 static const unsigned long long defaultReconnectDelay; |
59 | 59 |
60 String url() const; | 60 String url() const; |
61 bool withCredentials() const; | 61 bool withCredentials() const; |
62 | 62 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 String m_lastEventId; | 122 String m_lastEventId; |
123 unsigned long long m_reconnectDelay; | 123 unsigned long long m_reconnectDelay; |
124 String m_eventStreamOrigin; | 124 String m_eventStreamOrigin; |
125 | 125 |
126 EventTargetData m_eventTargetData; | 126 EventTargetData m_eventTargetData; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace WebCore | 129 } // namespace WebCore |
130 | 130 |
131 #endif // EventSource_h | 131 #endif // EventSource_h |
OLD | NEW |