Home | History | Annotate | Download | only in page

Lines Matching defs:EventSource

34 #include "core/page/EventSource.h"
60 const unsigned long long EventSource::defaultReconnectDelay = 3000;
62 inline EventSource::EventSource(ExecutionContext* context, const KURL& url, const EventSourceInit& eventSourceInit)
68 , m_connectTimer(this, &EventSource::connectTimerFired)
75 PassRefPtrWillBeRawPtr<EventSource> EventSource::create(ExecutionContext* context, const String& url, const EventSourceInit& eventSourceInit, ExceptionState& exceptionState)
78 exceptionState.throwDOMException(SyntaxError, "Cannot open an EventSource to an empty URL.");
84 exceptionState.throwDOMException(SyntaxError, "Cannot open an EventSource to '" + url + "'. The URL is invalid.");
100 RefPtrWillBeRawPtr<EventSource> source = adoptRefWillBeNoop(new EventSource(context, fullURL, eventSourceInit));
108 EventSource::~EventSource()
114 void EventSource::scheduleInitialConnect()
122 void EventSource::connect()
157 void EventSource::networkRequestEnded()
168 void EventSource::scheduleReconnect()
175 void EventSource::connectTimerFired(Timer<EventSource>*)
180 String EventSource::url() const
185 bool EventSource::withCredentials() const
190 EventSource::State EventSource::readyState() const
195 void EventSource::close()
202 // Stop trying to reconnect if EventSource was explicitly closed or if ActiveDOMObject::stop() was called.
213 const AtomicString& EventSource::interfaceName() const
215 return EventTargetNames::EventSource;
218 ExecutionContext* EventSource::executionContext() const
223 void EventSource::didReceiveResponse(unsigned long, const ResourceResponse& response)
238 message.appendLiteral("EventSource's response has a charset (\"");
248 message.appendLiteral("EventSource's response has a MIME type (\"");
265 void EventSource::didReceiveData(const char* data, int length)
274 void EventSource::didFinishLoading(unsigned long, double)
291 void EventSource::didFail(const ResourceError& error)
301 void EventSource::didFailAccessControlCheck(const ResourceError& error)
303 String message = "EventSource cannot load " + error.failingURL() + ". " + error.localizedDescription();
309 void EventSource::didFailRedirectCheck()
314 void EventSource::abortConnectionAttempt()
328 void EventSource::parseEventStream()
361 // EventSource.close() might've been called by one of the message event handlers.
373 void EventSource::parseEventStreamLine(unsigned bufPos, int fieldLength, int lineLength)
422 void EventSource::stop()
427 bool EventSource::hasPendingActivity() const
432 PassRefPtrWillBeRawPtr<MessageEvent> EventSource::createMessageEvent()