| 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 25 matching lines...) Expand all Loading... |
| 36 #include "modules/mediastream/MediaStreamTrackSourcesRequestImpl.h" | 36 #include "modules/mediastream/MediaStreamTrackSourcesRequestImpl.h" |
| 37 #include "modules/mediastream/UserMediaController.h" | 37 #include "modules/mediastream/UserMediaController.h" |
| 38 #include "platform/mediastream/MediaStreamCenter.h" | 38 #include "platform/mediastream/MediaStreamCenter.h" |
| 39 #include "platform/mediastream/MediaStreamComponent.h" | 39 #include "platform/mediastream/MediaStreamComponent.h" |
| 40 #include "public/platform/WebSourceInfo.h" | 40 #include "public/platform/WebSourceInfo.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 MediaStreamTrack* MediaStreamTrack::create(ExecutionContext* context, MediaStrea
mComponent* component) | 44 MediaStreamTrack* MediaStreamTrack::create(ExecutionContext* context, MediaStrea
mComponent* component) |
| 45 { | 45 { |
| 46 MediaStreamTrack* track = adoptRefCountedGarbageCollectedWillBeNoop(new Medi
aStreamTrack(context, component)); | 46 MediaStreamTrack* track = new MediaStreamTrack(context, component); |
| 47 track->suspendIfNeeded(); | 47 track->suspendIfNeeded(); |
| 48 return track; | 48 return track; |
| 49 } | 49 } |
| 50 | 50 |
| 51 MediaStreamTrack::MediaStreamTrack(ExecutionContext* context, MediaStreamCompone
nt* component) | 51 MediaStreamTrack::MediaStreamTrack(ExecutionContext* context, MediaStreamCompone
nt* component) |
| 52 : ActiveDOMObject(context) | 52 : ActiveDOMObject(context) |
| 53 , m_readyState(MediaStreamSource::ReadyStateLive) | 53 , m_readyState(MediaStreamSource::ReadyStateLive) |
| 54 , m_isIteratingRegisteredMediaStreams(false) | 54 , m_isIteratingRegisteredMediaStreams(false) |
| 55 , m_stopped(false) | 55 , m_stopped(false) |
| 56 , m_component(component) | 56 , m_component(component) |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 void MediaStreamTrack::trace(Visitor* visitor) | 237 void MediaStreamTrack::trace(Visitor* visitor) |
| 238 { | 238 { |
| 239 visitor->trace(m_registeredMediaStreams); | 239 visitor->trace(m_registeredMediaStreams); |
| 240 visitor->trace(m_component); | 240 visitor->trace(m_component); |
| 241 EventTargetWithInlineData::trace(visitor); | 241 EventTargetWithInlineData::trace(visitor); |
| 242 MediaStreamSource::Observer::trace(visitor); | 242 MediaStreamSource::Observer::trace(visitor); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace blink | 245 } // namespace blink |
| OLD | NEW |