OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 m_readyState = ReadyStateClosed; | 318 m_readyState = ReadyStateClosed; |
319 m_handler->setClient(0); | 319 m_handler->setClient(0); |
320 m_executionContext = 0; | 320 m_executionContext = 0; |
321 } | 321 } |
322 | 322 |
323 void RTCDataChannel::scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event> event) | 323 void RTCDataChannel::scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event> event) |
324 { | 324 { |
325 m_scheduledEvents.append(event); | 325 m_scheduledEvents.append(event); |
326 | 326 |
327 if (!m_scheduledEventTimer.isActive()) | 327 if (!m_scheduledEventTimer.isActive()) |
328 m_scheduledEventTimer.startOneShot(0, FROM_HERE); | 328 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE); |
329 } | 329 } |
330 | 330 |
331 void RTCDataChannel::scheduledEventTimerFired(Timer<RTCDataChannel>*) | 331 void RTCDataChannel::scheduledEventTimerFired(Timer<RTCDataChannel>*) |
332 { | 332 { |
333 if (m_stopped) | 333 if (m_stopped) |
334 return; | 334 return; |
335 | 335 |
336 WillBeHeapVector<RefPtrWillBeMember<Event>> events; | 336 WillBeHeapVector<RefPtrWillBeMember<Event>> events; |
337 events.swap(m_scheduledEvents); | 337 events.swap(m_scheduledEvents); |
338 | 338 |
(...skipping 14 matching lines...) Expand all Loading... |
353 | 353 |
354 DEFINE_TRACE(RTCDataChannel) | 354 DEFINE_TRACE(RTCDataChannel) |
355 { | 355 { |
356 visitor->trace(m_executionContext); | 356 visitor->trace(m_executionContext); |
357 visitor->trace(m_scheduledEvents); | 357 visitor->trace(m_scheduledEvents); |
358 visitor->template registerWeakMembers<RTCDataChannel, &RTCDataChannel::clear
WeakMembers>(this); | 358 visitor->template registerWeakMembers<RTCDataChannel, &RTCDataChannel::clear
WeakMembers>(this); |
359 RefCountedGarbageCollectedEventTargetWithInlineData<RTCDataChannel>::trace(v
isitor); | 359 RefCountedGarbageCollectedEventTargetWithInlineData<RTCDataChannel>::trace(v
isitor); |
360 } | 360 } |
361 | 361 |
362 } // namespace blink | 362 } // namespace blink |
OLD | NEW |