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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } // namespace | 92 } // namespace |
93 | 93 |
94 SourceBuffer* SourceBuffer::create(PassOwnPtr<WebSourceBuffer> webSourceBuffer,
MediaSource* source, GenericEventQueue* asyncEventQueue) | 94 SourceBuffer* SourceBuffer::create(PassOwnPtr<WebSourceBuffer> webSourceBuffer,
MediaSource* source, GenericEventQueue* asyncEventQueue) |
95 { | 95 { |
96 SourceBuffer* sourceBuffer = new SourceBuffer(webSourceBuffer, source, async
EventQueue); | 96 SourceBuffer* sourceBuffer = new SourceBuffer(webSourceBuffer, source, async
EventQueue); |
97 sourceBuffer->suspendIfNeeded(); | 97 sourceBuffer->suspendIfNeeded(); |
98 return sourceBuffer; | 98 return sourceBuffer; |
99 } | 99 } |
100 | 100 |
101 SourceBuffer::SourceBuffer(PassOwnPtr<WebSourceBuffer> webSourceBuffer, MediaSou
rce* source, GenericEventQueue* asyncEventQueue) | 101 SourceBuffer::SourceBuffer(PassOwnPtr<WebSourceBuffer> webSourceBuffer, MediaSou
rce* source, GenericEventQueue* asyncEventQueue) |
102 : ActiveDOMObject(source->getExecutionContext()) | 102 : ActiveScriptWrappable(this) |
| 103 , ActiveDOMObject(source->getExecutionContext()) |
103 , m_webSourceBuffer(webSourceBuffer) | 104 , m_webSourceBuffer(webSourceBuffer) |
104 , m_source(source) | 105 , m_source(source) |
105 , m_trackDefaults(TrackDefaultList::create()) | 106 , m_trackDefaults(TrackDefaultList::create()) |
106 , m_asyncEventQueue(asyncEventQueue) | 107 , m_asyncEventQueue(asyncEventQueue) |
107 , m_mode(segmentsKeyword()) | 108 , m_mode(segmentsKeyword()) |
108 , m_updating(false) | 109 , m_updating(false) |
109 , m_timestampOffset(0) | 110 , m_timestampOffset(0) |
110 , m_appendWindowStart(0) | 111 , m_appendWindowStart(0) |
111 , m_appendWindowEnd(std::numeric_limits<double>::infinity()) | 112 , m_appendWindowEnd(std::numeric_limits<double>::infinity()) |
112 , m_firstInitializationSegmentReceived(false) | 113 , m_firstInitializationSegmentReceived(false) |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 visitor->trace(m_asyncEventQueue); | 871 visitor->trace(m_asyncEventQueue); |
871 visitor->trace(m_appendBufferAsyncPartRunner); | 872 visitor->trace(m_appendBufferAsyncPartRunner); |
872 visitor->trace(m_removeAsyncPartRunner); | 873 visitor->trace(m_removeAsyncPartRunner); |
873 visitor->trace(m_appendStreamAsyncPartRunner); | 874 visitor->trace(m_appendStreamAsyncPartRunner); |
874 visitor->trace(m_stream); | 875 visitor->trace(m_stream); |
875 RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>::trace(vis
itor); | 876 RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>::trace(vis
itor); |
876 ActiveDOMObject::trace(visitor); | 877 ActiveDOMObject::trace(visitor); |
877 } | 878 } |
878 | 879 |
879 } // namespace blink | 880 } // namespace blink |
OLD | NEW |