Index: Source/modules/mediastream/UserMediaRequest.h |
diff --git a/Source/modules/mediastream/UserMediaRequest.h b/Source/modules/mediastream/UserMediaRequest.h |
index bef653dfd857e7dd8cd190f680ff8d7165c1590c..b5bf69f33bc5807fd0ece9f7765afff5242865a3 100644 |
--- a/Source/modules/mediastream/UserMediaRequest.h |
+++ b/Source/modules/mediastream/UserMediaRequest.h |
@@ -48,9 +48,9 @@ class ExceptionState; |
class MediaStreamDescriptor; |
class UserMediaController; |
-class UserMediaRequest FINAL : public RefCounted<UserMediaRequest>, public ContextLifecycleObserver { |
+class UserMediaRequest FINAL : public RefCountedWillBeGarbageCollectedFinalized<UserMediaRequest>, public ContextLifecycleObserver { |
public: |
- static PassRefPtr<UserMediaRequest> create(ExecutionContext*, UserMediaController*, const Dictionary& options, PassOwnPtr<NavigatorUserMediaSuccessCallback>, PassOwnPtr<NavigatorUserMediaErrorCallback>, ExceptionState&); |
+ static PassRefPtrWillBeRawPtr<UserMediaRequest> create(ExecutionContext*, UserMediaController*, const Dictionary& options, PassOwnPtr<NavigatorUserMediaSuccessCallback>, PassOwnPtr<NavigatorUserMediaErrorCallback>, ExceptionState&); |
virtual ~UserMediaRequest(); |
NavigatorUserMediaSuccessCallback* successCallback() const { return m_successCallback.get(); } |
@@ -72,6 +72,8 @@ public: |
// ContextLifecycleObserver |
virtual void contextDestroyed() OVERRIDE; |
+ void trace(Visitor*) { } |
+ |
private: |
UserMediaRequest(ExecutionContext*, UserMediaController*, blink::WebMediaConstraints audio, blink::WebMediaConstraints video, PassOwnPtr<NavigatorUserMediaSuccessCallback>, PassOwnPtr<NavigatorUserMediaErrorCallback>); |