| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 // | 436 // |
| 437 // Worth doing regardless, it is no longer of use. | 437 // Worth doing regardless, it is no longer of use. |
| 438 m_loader = nullptr; | 438 m_loader = nullptr; |
| 439 } | 439 } |
| 440 | 440 |
| 441 bool EventSource::hasPendingActivity() const | 441 bool EventSource::hasPendingActivity() const |
| 442 { | 442 { |
| 443 return m_state != CLOSED; | 443 return m_state != CLOSED; |
| 444 } | 444 } |
| 445 | 445 |
| 446 PassRefPtrWillBeRawPtr<MessageEvent> EventSource::createMessageEvent() | 446 RawPtr<MessageEvent> EventSource::createMessageEvent() |
| 447 { | 447 { |
| 448 RefPtrWillBeRawPtr<MessageEvent> event = MessageEvent::create(); | 448 RawPtr<MessageEvent> event = MessageEvent::create(); |
| 449 event->initMessageEvent(m_eventName.isEmpty() ? EventTypeNames::message : m_
eventName, false, false, SerializedScriptValueFactory::instance().create(String(
m_data)), m_eventStreamOrigin, m_lastEventId, 0, nullptr); | 449 event->initMessageEvent(m_eventName.isEmpty() ? EventTypeNames::message : m_
eventName, false, false, SerializedScriptValueFactory::instance().create(String(
m_data)), m_eventStreamOrigin, m_lastEventId, 0, nullptr); |
| 450 m_data.clear(); | 450 m_data.clear(); |
| 451 return event.release(); | 451 return event.release(); |
| 452 } | 452 } |
| 453 | 453 |
| 454 DEFINE_TRACE(EventSource) | 454 DEFINE_TRACE(EventSource) |
| 455 { | 455 { |
| 456 RefCountedGarbageCollectedEventTargetWithInlineData::trace(visitor); | 456 RefCountedGarbageCollectedEventTargetWithInlineData::trace(visitor); |
| 457 ActiveDOMObject::trace(visitor); | 457 ActiveDOMObject::trace(visitor); |
| 458 } | 458 } |
| 459 | 459 |
| 460 } // namespace blink | 460 } // namespace blink |
| OLD | NEW |