OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 474 |
475 bool SourceBuffer::isRemoved() const | 475 bool SourceBuffer::isRemoved() const |
476 { | 476 { |
477 return !m_source; | 477 return !m_source; |
478 } | 478 } |
479 | 479 |
480 void SourceBuffer::scheduleEvent(const AtomicString& eventName) | 480 void SourceBuffer::scheduleEvent(const AtomicString& eventName) |
481 { | 481 { |
482 ASSERT(m_asyncEventQueue); | 482 ASSERT(m_asyncEventQueue); |
483 | 483 |
484 RefPtr<Event> event = Event::create(eventName); | 484 RefPtrWillBeRawPtr<Event> event = Event::create(eventName); |
485 event->setTarget(this); | 485 event->setTarget(this); |
486 | 486 |
487 m_asyncEventQueue->enqueueEvent(event.release()); | 487 m_asyncEventQueue->enqueueEvent(event.release()); |
488 } | 488 } |
489 | 489 |
490 void SourceBuffer::appendBufferInternal(const unsigned char* data, unsigned size
, ExceptionState& exceptionState) | 490 void SourceBuffer::appendBufferInternal(const unsigned char* data, unsigned size
, ExceptionState& exceptionState) |
491 { | 491 { |
492 // Section 3.2 appendBuffer() | 492 // Section 3.2 appendBuffer() |
493 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-sou
rce.html#widl-SourceBuffer-appendBuffer-void-ArrayBufferView-data | 493 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-sou
rce.html#widl-SourceBuffer-appendBuffer-void-ArrayBufferView-data |
494 | 494 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 appendStreamDone(false); | 707 appendStreamDone(false); |
708 } | 708 } |
709 | 709 |
710 void SourceBuffer::trace(Visitor* visitor) | 710 void SourceBuffer::trace(Visitor* visitor) |
711 { | 711 { |
712 visitor->trace(m_source); | 712 visitor->trace(m_source); |
713 visitor->trace(m_stream); | 713 visitor->trace(m_stream); |
714 } | 714 } |
715 | 715 |
716 } // namespace WebCore | 716 } // namespace WebCore |
OLD | NEW |