Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2319)

Unified Diff: Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h

Issue 329093002: Allow PeerConnection to be garbage collected after close(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h
diff --git a/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h b/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h
index 80ebe8cb5d758e96c727c14bf247760112eab364..e88c9fc70ce2dfe3865f28323bca86b2c26e5afb 100644
--- a/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h
+++ b/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h
@@ -48,7 +48,7 @@ class RTCSessionDescriptionCallback;
class RTCSessionDescriptionRequestImpl FINAL : public RTCSessionDescriptionRequest, public ActiveDOMObject {
public:
- static PassRefPtr<RTCSessionDescriptionRequestImpl> create(ExecutionContext*, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>);
+ static PassRefPtr<RTCSessionDescriptionRequestImpl> create(ExecutionContext*, PassRefPtr<RTCPeerConnection>, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>);
haraken 2014/06/15 13:43:57 RTCPeerConnection is already on oilpan's heap, so
Henrik Grunell 2014/06/16 07:49:00 I don't know much about oilpan. You know that bett
virtual ~RTCSessionDescriptionRequestImpl();
virtual void requestSucceeded(const blink::WebRTCSessionDescription&) OVERRIDE;
@@ -58,16 +58,16 @@ public:
virtual void stop() OVERRIDE;
private:
- RTCSessionDescriptionRequestImpl(ExecutionContext*, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>);
+ RTCSessionDescriptionRequestImpl(ExecutionContext*, PassRefPtr<RTCPeerConnection>, PassOwnPtr<RTCSessionDescriptionCallback>, PassOwnPtr<RTCErrorCallback>);
haraken 2014/06/15 13:43:57 PassRefPtrWillBeRawPtr
Henrik Grunell 2014/06/16 07:49:00 Done.
void clear();
OwnPtr<RTCSessionDescriptionCallback> m_successCallback;
OwnPtr<RTCErrorCallback> m_errorCallback;
+
+ RefPtr<RTCPeerConnection> m_requester;
haraken 2014/06/15 13:43:57 RefPtrWillBePersistent
Henrik Grunell 2014/06/16 07:49:00 Done.
};
} // namespace WebCore
#endif // RTCSessionDescriptionRequestImpl_h
-
-

Powered by Google App Engine
This is Rietveld 408576698