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

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

Issue 1580883002: Oilpan: move AsyncMethodRunner to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to RawPtrOrMemberTrait<> Created 4 years, 11 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.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
index 61c476fcbae2811ae57edab33bceeb8c73ff57c3..28324597d650d19a02d7ba8fead092cad649b580 100644
--- a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
@@ -347,7 +347,7 @@ RTCPeerConnection::RTCPeerConnection(ExecutionContext* context, RTCConfiguration
, m_signalingState(SignalingStateStable)
, m_iceGatheringState(ICEGatheringStateNew)
, m_iceConnectionState(ICEConnectionStateNew)
- , m_dispatchScheduledEventRunner(this, &RTCPeerConnection::dispatchScheduledEvent)
+ , m_dispatchScheduledEventRunner(AsyncMethodRunner<RTCPeerConnection>::create(this, &RTCPeerConnection::dispatchScheduledEvent))
, m_stopped(false)
, m_closed(false)
{
@@ -939,12 +939,12 @@ ExecutionContext* RTCPeerConnection::executionContext() const
void RTCPeerConnection::suspend()
{
- m_dispatchScheduledEventRunner.suspend();
+ m_dispatchScheduledEventRunner->suspend();
}
void RTCPeerConnection::resume()
{
- m_dispatchScheduledEventRunner.resume();
+ m_dispatchScheduledEventRunner->resume();
}
void RTCPeerConnection::stop()
@@ -961,7 +961,7 @@ void RTCPeerConnection::stop()
(*i)->stop();
m_dataChannels.clear();
- m_dispatchScheduledEventRunner.stop();
+ m_dispatchScheduledEventRunner->stop();
m_peerHandler.clear();
}
@@ -1017,7 +1017,7 @@ void RTCPeerConnection::scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event> even
{
m_scheduledEvents.append(new EventWrapper(event, setupFunction));
- m_dispatchScheduledEventRunner.runAsync();
+ m_dispatchScheduledEventRunner->runAsync();
}
void RTCPeerConnection::dispatchScheduledEvent()
@@ -1043,6 +1043,7 @@ DEFINE_TRACE(RTCPeerConnection)
visitor->trace(m_localStreams);
visitor->trace(m_remoteStreams);
visitor->trace(m_dataChannels);
+ visitor->trace(m_dispatchScheduledEventRunner);
visitor->trace(m_scheduledEvents);
RefCountedGarbageCollectedEventTargetWithInlineData<RTCPeerConnection>::trace(visitor);
ActiveDOMObject::trace(visitor);

Powered by Google App Engine
This is Rietveld 408576698