| Index: Source/modules/mediastream/RTCStatsRequestImpl.h
|
| diff --git a/Source/modules/mediastream/RTCStatsRequestImpl.h b/Source/modules/mediastream/RTCStatsRequestImpl.h
|
| index eb3b08e8c7c5f59c81b89141c004d1b3ffec4083..b0d8a24f38325073cc76e928ca457619b96432e7 100644
|
| --- a/Source/modules/mediastream/RTCStatsRequestImpl.h
|
| +++ b/Source/modules/mediastream/RTCStatsRequestImpl.h
|
| @@ -27,6 +27,7 @@
|
|
|
| #include "core/dom/ActiveDOMObject.h"
|
| #include "modules/mediastream/RTCStatsResponse.h"
|
| +#include "platform/heap/Handle.h"
|
| #include "platform/mediastream/RTCStatsRequest.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| @@ -35,11 +36,12 @@
|
| namespace WebCore {
|
|
|
| class MediaStreamTrack;
|
| +class RTCPeerConnection;
|
| class RTCStatsCallback;
|
|
|
| class RTCStatsRequestImpl FINAL : public RTCStatsRequest, public ActiveDOMObject {
|
| public:
|
| - static PassRefPtr<RTCStatsRequestImpl> create(ExecutionContext*, PassOwnPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
|
| + static PassRefPtr<RTCStatsRequestImpl> create(ExecutionContext*, PassRefPtrWillBeRawPtr<RTCPeerConnection>, PassOwnPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
|
| virtual ~RTCStatsRequestImpl();
|
|
|
| virtual PassRefPtrWillBeRawPtr<RTCStatsResponseBase> createResponse() OVERRIDE;
|
| @@ -52,12 +54,14 @@ public:
|
| virtual void stop() OVERRIDE;
|
|
|
| private:
|
| - RTCStatsRequestImpl(ExecutionContext*, PassOwnPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
|
| + RTCStatsRequestImpl(ExecutionContext*, PassRefPtrWillBeRawPtr<RTCPeerConnection>, PassOwnPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
|
|
|
| void clear();
|
|
|
| OwnPtr<RTCStatsCallback> m_successCallback;
|
| RefPtr<MediaStreamComponent> m_component;
|
| +
|
| + RefPtrWillBePersistent<RTCPeerConnection> m_requester;
|
| };
|
|
|
| } // namespace WebCore
|
|
|