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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp

Issue 2648543002: Move RTCDTMFSender timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp
index 09581e7c017ad85841bc69ac1439a57d58a1ca1c..7b9b4f984e8151b01fbc46639d27b21e59383a23 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.cpp
@@ -29,6 +29,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "modules/mediastream/MediaStreamTrack.h"
#include "modules/peerconnection/RTCDTMFToneChangeEvent.h"
#include "public/platform/WebMediaStreamTrack.h"
@@ -72,7 +73,10 @@ RTCDTMFSender::RTCDTMFSender(ExecutionContext* context,
m_interToneGap(defaultInterToneGapMs),
m_handler(std::move(handler)),
m_stopped(false),
- m_scheduledEventTimer(this, &RTCDTMFSender::scheduledEventTimerFired) {
+ m_scheduledEventTimer(
+ TaskRunnerHelper::get(TaskType::Networking, context),
+ this,
+ &RTCDTMFSender::scheduledEventTimerFired) {
m_handler->setClient(this);
}
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCDTMFSender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698