| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void SourceBufferList::clear() | 67 void SourceBufferList::clear() |
| 68 { | 68 { |
| 69 m_list.clear(); | 69 m_list.clear(); |
| 70 scheduleEvent(EventTypeNames::removesourcebuffer); | 70 scheduleEvent(EventTypeNames::removesourcebuffer); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void SourceBufferList::scheduleEvent(const AtomicString& eventName) | 73 void SourceBufferList::scheduleEvent(const AtomicString& eventName) |
| 74 { | 74 { |
| 75 ASSERT(m_asyncEventQueue); | 75 ASSERT(m_asyncEventQueue); |
| 76 | 76 |
| 77 RefPtr<Event> event = Event::create(eventName); | 77 RefPtrWillBeRawPtr<Event> event = Event::create(eventName); |
| 78 event->setTarget(this); | 78 event->setTarget(this); |
| 79 | 79 |
| 80 m_asyncEventQueue->enqueueEvent(event.release()); | 80 m_asyncEventQueue->enqueueEvent(event.release()); |
| 81 } | 81 } |
| 82 | 82 |
| 83 const AtomicString& SourceBufferList::interfaceName() const | 83 const AtomicString& SourceBufferList::interfaceName() const |
| 84 { | 84 { |
| 85 return EventTargetNames::SourceBufferList; | 85 return EventTargetNames::SourceBufferList; |
| 86 } | 86 } |
| 87 | 87 |
| 88 ExecutionContext* SourceBufferList::executionContext() const | 88 ExecutionContext* SourceBufferList::executionContext() const |
| 89 { | 89 { |
| 90 return m_executionContext; | 90 return m_executionContext; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void SourceBufferList::trace(Visitor* visitor) | 93 void SourceBufferList::trace(Visitor* visitor) |
| 94 { | 94 { |
| 95 visitor->trace(m_list); | 95 visitor->trace(m_list); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace WebCore | 98 } // namespace WebCore |
| OLD | NEW |