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

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

Issue 2647703002: Move RTCDataChannel 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/RTCDataChannel.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/RTCDataChannel.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
index 890202a3a1607bec4574325ca44ebadb009c925d..afdf569ae6f3e22c4708c000811ad79591c1f34a 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
@@ -29,6 +29,7 @@
#include "core/dom/DOMArrayBufferView.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/MessageEvent.h"
#include "core/fileapi/Blob.h"
#include "modules/peerconnection/RTCPeerConnection.h"
@@ -88,7 +89,10 @@ RTCDataChannel::RTCDataChannel(
m_handler(std::move(handler)),
m_readyState(ReadyStateConnecting),
m_binaryType(BinaryTypeArrayBuffer),
- m_scheduledEventTimer(this, &RTCDataChannel::scheduledEventTimerFired),
+ m_scheduledEventTimer(
+ TaskRunnerHelper::get(TaskType::Networking, context),
+ this,
+ &RTCDataChannel::scheduledEventTimerFired),
m_bufferedAmountLowThreshold(0U),
m_stopped(false) {
m_handler->setClient(this);
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698