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

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

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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
« no previous file with comments | « Source/modules/mediastream/RTCStatsCallback.h ('k') | Source/modules/mediastream/RTCStatsRequestImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/RTCStatsRequestImpl.h
diff --git a/Source/modules/mediastream/RTCStatsRequestImpl.h b/Source/modules/mediastream/RTCStatsRequestImpl.h
index 1e8495db7b6d65e9c2ddae69ed51ccd292316908..b956cdd6328561abebad17305c5c18b2666f1efc 100644
--- a/Source/modules/mediastream/RTCStatsRequestImpl.h
+++ b/Source/modules/mediastream/RTCStatsRequestImpl.h
@@ -39,7 +39,7 @@ class RTCStatsCallback;
class RTCStatsRequestImpl : public RTCStatsRequest, public ActiveDOMObject {
public:
- static PassRefPtr<RTCStatsRequestImpl> create(ExecutionContext*, PassRefPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
+ static PassRefPtr<RTCStatsRequestImpl> create(ExecutionContext*, PassOwnPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
virtual ~RTCStatsRequestImpl();
virtual PassRefPtr<RTCStatsResponseBase> createResponse() OVERRIDE;
@@ -52,11 +52,11 @@ public:
virtual void stop() OVERRIDE;
private:
- RTCStatsRequestImpl(ExecutionContext*, PassRefPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
+ RTCStatsRequestImpl(ExecutionContext*, PassOwnPtr<RTCStatsCallback>, PassRefPtr<MediaStreamTrack>);
void clear();
- RefPtr<RTCStatsCallback> m_successCallback;
+ OwnPtr<RTCStatsCallback> m_successCallback;
RefPtr<MediaStreamComponent> m_component;
};
« no previous file with comments | « Source/modules/mediastream/RTCStatsCallback.h ('k') | Source/modules/mediastream/RTCStatsRequestImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698