| 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 * Copyright (C) 2011, Code Aurora Forum. All rights reserved. | 4 * Copyright (C) 2011, Code Aurora Forum. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 void EventSource::didFailRedirectCheck() | 311 void EventSource::didFailRedirectCheck() |
| 312 { | 312 { |
| 313 ASSERT(m_loader); | 313 ASSERT(m_loader); |
| 314 | 314 |
| 315 abortConnectionAttempt(); | 315 abortConnectionAttempt(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 void EventSource::onMessageEvent(const AtomicString& eventType, const String& da
ta, const AtomicString& lastEventId) | 318 void EventSource::onMessageEvent(const AtomicString& eventType, const String& da
ta, const AtomicString& lastEventId) |
| 319 { | 319 { |
| 320 RefPtrWillBeRawPtr<MessageEvent> e = MessageEvent::create(); | 320 RawPtr<MessageEvent> e = MessageEvent::create(); |
| 321 e->initMessageEvent(eventType, false, false, SerializedScriptValueFactory::i
nstance().create(data), m_eventStreamOrigin, lastEventId, 0, nullptr); | 321 e->initMessageEvent(eventType, false, false, SerializedScriptValueFactory::i
nstance().create(data), m_eventStreamOrigin, lastEventId, 0, nullptr); |
| 322 | 322 |
| 323 InspectorInstrumentation::willDispatchEventSourceEvent(getExecutionContext()
, this, eventType, lastEventId, data); | 323 InspectorInstrumentation::willDispatchEventSourceEvent(getExecutionContext()
, this, eventType, lastEventId, data); |
| 324 dispatchEvent(e); | 324 dispatchEvent(e); |
| 325 } | 325 } |
| 326 | 326 |
| 327 void EventSource::onReconnectionTimeSet(unsigned long long reconnectionTime) | 327 void EventSource::onReconnectionTimeSet(unsigned long long reconnectionTime) |
| 328 { | 328 { |
| 329 m_reconnectDelay = reconnectionTime; | 329 m_reconnectDelay = reconnectionTime; |
| 330 } | 330 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 352 | 352 |
| 353 DEFINE_TRACE(EventSource) | 353 DEFINE_TRACE(EventSource) |
| 354 { | 354 { |
| 355 visitor->trace(m_parser); | 355 visitor->trace(m_parser); |
| 356 RefCountedGarbageCollectedEventTargetWithInlineData::trace(visitor); | 356 RefCountedGarbageCollectedEventTargetWithInlineData::trace(visitor); |
| 357 ActiveDOMObject::trace(visitor); | 357 ActiveDOMObject::trace(visitor); |
| 358 EventSourceParser::Client::trace(visitor); | 358 EventSourceParser::Client::trace(visitor); |
| 359 } | 359 } |
| 360 | 360 |
| 361 } // namespace blink | 361 } // namespace blink |
| OLD | NEW |