| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SourceBufferList::clear() | 71 void SourceBufferList::clear() |
| 72 { | 72 { |
| 73 m_list.clear(); | 73 m_list.clear(); |
| 74 scheduleEvent(EventTypeNames::removesourcebuffer); | 74 scheduleEvent(EventTypeNames::removesourcebuffer); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void SourceBufferList::scheduleEvent(const AtomicString& eventName) | 77 void SourceBufferList::scheduleEvent(const AtomicString& eventName) |
| 78 { | 78 { |
| 79 ASSERT(m_asyncEventQueue); | 79 DCHECK(m_asyncEventQueue); |
| 80 | 80 |
| 81 Event* event = Event::create(eventName); | 81 Event* event = Event::create(eventName); |
| 82 event->setTarget(this); | 82 event->setTarget(this); |
| 83 | 83 |
| 84 m_asyncEventQueue->enqueueEvent(event); | 84 m_asyncEventQueue->enqueueEvent(event); |
| 85 } | 85 } |
| 86 | 86 |
| 87 const AtomicString& SourceBufferList::interfaceName() const | 87 const AtomicString& SourceBufferList::interfaceName() const |
| 88 { | 88 { |
| 89 return EventTargetNames::SourceBufferList; | 89 return EventTargetNames::SourceBufferList; |
| 90 } | 90 } |
| 91 | 91 |
| 92 ExecutionContext* SourceBufferList::getExecutionContext() const | 92 ExecutionContext* SourceBufferList::getExecutionContext() const |
| 93 { | 93 { |
| 94 return m_executionContext; | 94 return m_executionContext; |
| 95 } | 95 } |
| 96 | 96 |
| 97 DEFINE_TRACE(SourceBufferList) | 97 DEFINE_TRACE(SourceBufferList) |
| 98 { | 98 { |
| 99 visitor->trace(m_executionContext); | 99 visitor->trace(m_executionContext); |
| 100 visitor->trace(m_asyncEventQueue); | 100 visitor->trace(m_asyncEventQueue); |
| 101 visitor->trace(m_list); | 101 visitor->trace(m_list); |
| 102 EventTargetWithInlineData::trace(visitor); | 102 EventTargetWithInlineData::trace(visitor); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |