| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 return track; | 46 return track; |
| 47 } | 47 } |
| 48 | 48 |
| 49 MediaStreamTrack::MediaStreamTrack(ExecutionContext* context, MediaStreamCompone
nt* component) | 49 MediaStreamTrack::MediaStreamTrack(ExecutionContext* context, MediaStreamCompone
nt* component) |
| 50 : ActiveDOMObject(context) | 50 : ActiveDOMObject(context) |
| 51 , m_readyState(MediaStreamSource::ReadyStateLive) | 51 , m_readyState(MediaStreamSource::ReadyStateLive) |
| 52 , m_isIteratingRegisteredMediaStreams(false) | 52 , m_isIteratingRegisteredMediaStreams(false) |
| 53 , m_stopped(false) | 53 , m_stopped(false) |
| 54 , m_component(component) | 54 , m_component(component) |
| 55 { | 55 { |
| 56 ScriptWrappable::init(this); | |
| 57 m_component->source()->addObserver(this); | 56 m_component->source()->addObserver(this); |
| 58 } | 57 } |
| 59 | 58 |
| 60 MediaStreamTrack::~MediaStreamTrack() | 59 MediaStreamTrack::~MediaStreamTrack() |
| 61 { | 60 { |
| 62 m_component->source()->removeObserver(this); | 61 m_component->source()->removeObserver(this); |
| 63 } | 62 } |
| 64 | 63 |
| 65 String MediaStreamTrack::kind() const | 64 String MediaStreamTrack::kind() const |
| 66 { | 65 { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 return ActiveDOMObject::executionContext(); | 226 return ActiveDOMObject::executionContext(); |
| 228 } | 227 } |
| 229 | 228 |
| 230 void MediaStreamTrack::trace(Visitor* visitor) | 229 void MediaStreamTrack::trace(Visitor* visitor) |
| 231 { | 230 { |
| 232 visitor->trace(m_registeredMediaStreams); | 231 visitor->trace(m_registeredMediaStreams); |
| 233 EventTargetWithInlineData::trace(visitor); | 232 EventTargetWithInlineData::trace(visitor); |
| 234 } | 233 } |
| 235 | 234 |
| 236 } // namespace blink | 235 } // namespace blink |
| OLD | NEW |