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

Unified Diff: third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h

Issue 1876703002: Oilpan: Replace EAGERLY_FINALIZE in EventTarget's hierarchy with pre-finalizers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h
index a66607625c80cc93224f2b14ddef27b5ea09a99b..2ce03d694d91ab7c6ef629fb63796dedc515a310 100644
--- a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h
+++ b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h
@@ -69,6 +69,7 @@ class RTCPeerConnection final
REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(RTCPeerConnection);
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection);
+ USING_PRE_FINALIZER(RTCPeerConnection, dispose);
public:
// TODO(hbos): Create with expired RTCCertificate should fail, see crbug.com/565278.
static RTCPeerConnection* create(ExecutionContext*, const Dictionary&, const Dictionary&, ExceptionState&);
@@ -161,8 +162,6 @@ public:
return !m_closed && !m_stopped;
}
- // Oilpan: need to eagerly finalize m_peerHandler
- EAGERLY_FINALIZE();
DECLARE_VIRTUAL_TRACE();
private:
@@ -183,6 +182,7 @@ private:
};
RTCPeerConnection(ExecutionContext*, RTCConfiguration*, WebMediaConstraints, ExceptionState&);
+ void dispose();
void scheduleDispatchEvent(Event*);
void scheduleDispatchEvent(Event*, PassOwnPtr<BoolFunction>);

Powered by Google App Engine
This is Rietveld 408576698