| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 86 } |
| 87 | 87 |
| 88 MediaSource* MediaSource::create(ExecutionContext* context) | 88 MediaSource* MediaSource::create(ExecutionContext* context) |
| 89 { | 89 { |
| 90 MediaSource* mediaSource = new MediaSource(context); | 90 MediaSource* mediaSource = new MediaSource(context); |
| 91 mediaSource->suspendIfNeeded(); | 91 mediaSource->suspendIfNeeded(); |
| 92 return mediaSource; | 92 return mediaSource; |
| 93 } | 93 } |
| 94 | 94 |
| 95 MediaSource::MediaSource(ExecutionContext* context) | 95 MediaSource::MediaSource(ExecutionContext* context) |
| 96 : ActiveDOMObject(context) | 96 : ActiveScriptWrappable(this) |
| 97 , ActiveDOMObject(context) |
| 97 , m_readyState(closedKeyword()) | 98 , m_readyState(closedKeyword()) |
| 98 , m_asyncEventQueue(GenericEventQueue::create(this)) | 99 , m_asyncEventQueue(GenericEventQueue::create(this)) |
| 99 , m_attachedElement(nullptr) | 100 , m_attachedElement(nullptr) |
| 100 , m_sourceBuffers(SourceBufferList::create(getExecutionContext(), m_asyncEve
ntQueue.get())) | 101 , m_sourceBuffers(SourceBufferList::create(getExecutionContext(), m_asyncEve
ntQueue.get())) |
| 101 , m_activeSourceBuffers(SourceBufferList::create(getExecutionContext(), m_as
yncEventQueue.get())) | 102 , m_activeSourceBuffers(SourceBufferList::create(getExecutionContext(), m_as
yncEventQueue.get())) |
| 102 , m_isAddedToRegistry(false) | 103 , m_isAddedToRegistry(false) |
| 103 { | 104 { |
| 104 WTF_LOG(Media, "MediaSource::MediaSource %p", this); | 105 WTF_LOG(Media, "MediaSource::MediaSource %p", this); |
| 105 } | 106 } |
| 106 | 107 |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 | 616 |
| 616 m_asyncEventQueue->enqueueEvent(event.release()); | 617 m_asyncEventQueue->enqueueEvent(event.release()); |
| 617 } | 618 } |
| 618 | 619 |
| 619 URLRegistry& MediaSource::registry() const | 620 URLRegistry& MediaSource::registry() const |
| 620 { | 621 { |
| 621 return MediaSourceRegistry::registry(); | 622 return MediaSourceRegistry::registry(); |
| 622 } | 623 } |
| 623 | 624 |
| 624 } // namespace blink | 625 } // namespace blink |
| OLD | NEW |