| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 { | 275 { |
| 276 return ActiveDOMObject::getExecutionContext(); | 276 return ActiveDOMObject::getExecutionContext(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 DEFINE_TRACE(MediaSource) | 279 DEFINE_TRACE(MediaSource) |
| 280 { | 280 { |
| 281 visitor->trace(m_asyncEventQueue); | 281 visitor->trace(m_asyncEventQueue); |
| 282 visitor->trace(m_attachedElement); | 282 visitor->trace(m_attachedElement); |
| 283 visitor->trace(m_sourceBuffers); | 283 visitor->trace(m_sourceBuffers); |
| 284 visitor->trace(m_activeSourceBuffers); | 284 visitor->trace(m_activeSourceBuffers); |
| 285 RefCountedGarbageCollectedEventTargetWithInlineData<MediaSource>::trace(visi
tor); | 285 EventTargetWithInlineData::trace(visitor); |
| 286 ActiveDOMObject::trace(visitor); | 286 ActiveDOMObject::trace(visitor); |
| 287 } | 287 } |
| 288 | 288 |
| 289 void MediaSource::setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource> webMediaSo
urce) | 289 void MediaSource::setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource> webMediaSo
urce) |
| 290 { | 290 { |
| 291 TRACE_EVENT_ASYNC_END0("media", "MediaSource::attachToElement", this); | 291 TRACE_EVENT_ASYNC_END0("media", "MediaSource::attachToElement", this); |
| 292 ASSERT(webMediaSource); | 292 ASSERT(webMediaSource); |
| 293 ASSERT(!m_webMediaSource); | 293 ASSERT(!m_webMediaSource); |
| 294 ASSERT(m_attachedElement); | 294 ASSERT(m_attachedElement); |
| 295 m_webMediaSource = webMediaSource; | 295 m_webMediaSource = webMediaSource; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 | 616 |
| 617 m_asyncEventQueue->enqueueEvent(event); | 617 m_asyncEventQueue->enqueueEvent(event); |
| 618 } | 618 } |
| 619 | 619 |
| 620 URLRegistry& MediaSource::registry() const | 620 URLRegistry& MediaSource::registry() const |
| 621 { | 621 { |
| 622 return MediaSourceRegistry::registry(); | 622 return MediaSourceRegistry::registry(); |
| 623 } | 623 } |
| 624 | 624 |
| 625 } // namespace blink | 625 } // namespace blink |
| OLD | NEW |