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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 GenericEventQueue* asyncEventQueue) { | 109 GenericEventQueue* asyncEventQueue) { |
110 SourceBuffer* sourceBuffer = | 110 SourceBuffer* sourceBuffer = |
111 new SourceBuffer(std::move(webSourceBuffer), source, asyncEventQueue); | 111 new SourceBuffer(std::move(webSourceBuffer), source, asyncEventQueue); |
112 sourceBuffer->suspendIfNeeded(); | 112 sourceBuffer->suspendIfNeeded(); |
113 return sourceBuffer; | 113 return sourceBuffer; |
114 } | 114 } |
115 | 115 |
116 SourceBuffer::SourceBuffer(std::unique_ptr<WebSourceBuffer> webSourceBuffer, | 116 SourceBuffer::SourceBuffer(std::unique_ptr<WebSourceBuffer> webSourceBuffer, |
117 MediaSource* source, | 117 MediaSource* source, |
118 GenericEventQueue* asyncEventQueue) | 118 GenericEventQueue* asyncEventQueue) |
119 : ActiveScriptWrappable(this), | 119 : ActiveScriptWrappable<SourceBuffer>(this), |
120 SuspendableObject(source->getExecutionContext()), | 120 SuspendableObject(source->getExecutionContext()), |
121 m_webSourceBuffer(std::move(webSourceBuffer)), | 121 m_webSourceBuffer(std::move(webSourceBuffer)), |
122 m_source(source), | 122 m_source(source), |
123 m_trackDefaults(TrackDefaultList::create()), | 123 m_trackDefaults(TrackDefaultList::create()), |
124 m_asyncEventQueue(asyncEventQueue), | 124 m_asyncEventQueue(asyncEventQueue), |
125 m_mode(segmentsKeyword()), | 125 m_mode(segmentsKeyword()), |
126 m_updating(false), | 126 m_updating(false), |
127 m_timestampOffset(0), | 127 m_timestampOffset(0), |
128 m_appendWindowStart(0), | 128 m_appendWindowStart(0), |
129 m_appendWindowEnd(std::numeric_limits<double>::infinity()), | 129 m_appendWindowEnd(std::numeric_limits<double>::infinity()), |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 visitor->trace(m_asyncEventQueue); | 1305 visitor->trace(m_asyncEventQueue); |
1306 visitor->trace(m_appendBufferAsyncPartRunner); | 1306 visitor->trace(m_appendBufferAsyncPartRunner); |
1307 visitor->trace(m_removeAsyncPartRunner); | 1307 visitor->trace(m_removeAsyncPartRunner); |
1308 visitor->trace(m_audioTracks); | 1308 visitor->trace(m_audioTracks); |
1309 visitor->trace(m_videoTracks); | 1309 visitor->trace(m_videoTracks); |
1310 EventTargetWithInlineData::trace(visitor); | 1310 EventTargetWithInlineData::trace(visitor); |
1311 SuspendableObject::trace(visitor); | 1311 SuspendableObject::trace(visitor); |
1312 } | 1312 } |
1313 | 1313 |
1314 } // namespace blink | 1314 } // namespace blink |
OLD | NEW |