Index: Source/modules/mediastream/MediaStreamTrack.cpp |
diff --git a/Source/modules/mediastream/MediaStreamTrack.cpp b/Source/modules/mediastream/MediaStreamTrack.cpp |
index f96a43305b03cff923d8bb9216ee7fc1d0094803..c061fc0d77ffeb3b180b4a702aa88abbd6fc0482 100644 |
--- a/Source/modules/mediastream/MediaStreamTrack.cpp |
+++ b/Source/modules/mediastream/MediaStreamTrack.cpp |
@@ -38,9 +38,11 @@ |
namespace WebCore { |
-PassRefPtr<MediaStreamTrack> MediaStreamTrack::create(ExecutionContext* context, MediaStreamComponent* component) |
+DEFINE_GC_INFO(MediaStreamTrack); |
+ |
+PassRefPtrWillBeRawPtr<MediaStreamTrack> MediaStreamTrack::create(ExecutionContext* context, MediaStreamComponent* component) |
{ |
- RefPtr<MediaStreamTrack> track = adoptRef(new MediaStreamTrack(context, component)); |
+ RefPtrWillBeRawPtr<MediaStreamTrack> track = adoptRefCountedWillBeRefCountedGarbageCollected(new MediaStreamTrack(context, component)); |
track->suspendIfNeeded(); |
return track.release(); |
} |
@@ -123,7 +125,7 @@ String MediaStreamTrack::readyState() const |
void MediaStreamTrack::getSources(ExecutionContext* context, PassOwnPtr<MediaStreamTrackSourcesCallback> callback, ExceptionState& exceptionState) |
{ |
- RefPtr<MediaStreamTrackSourcesRequest> request = MediaStreamTrackSourcesRequestImpl::create(context->securityOrigin()->toString(), callback); |
+ RefPtrWillBeRawPtr<MediaStreamTrackSourcesRequest> request = MediaStreamTrackSourcesRequestImpl::create(context->securityOrigin()->toString(), callback); |
if (!MediaStreamCenter::instance().getMediaStreamTrackSources(request.release())) |
exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::failedToExecute("getSources", "MediaStreamTrack", "Functionality not implemented yet")); |
} |