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

Unified Diff: third_party/WebKit/Source/modules/eventsource/EventSource.cpp

Issue 2641003004: Move EventSource 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/eventsource/EventSource.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/eventsource/EventSource.cpp
diff --git a/third_party/WebKit/Source/modules/eventsource/EventSource.cpp b/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
index f8be89b6d3258f264bb2e96644a08d67a67558f2..42a874076880a90f7f8b8dd1a8541670be1fd28a 100644
--- a/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
+++ b/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
@@ -39,6 +39,7 @@
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/events/MessageEvent.h"
#include "core/frame/LocalDOMWindow.h"
@@ -70,7 +71,9 @@ inline EventSource::EventSource(ExecutionContext* context,
m_currentURL(url),
m_withCredentials(eventSourceInit.withCredentials()),
m_state(kConnecting),
- m_connectTimer(this, &EventSource::connectTimerFired),
+ m_connectTimer(TaskRunnerHelper::get(TaskType::RemoteEvent, context),
+ this,
+ &EventSource::connectTimerFired),
m_reconnectDelay(defaultReconnectDelay) {}
EventSource* EventSource::create(ExecutionContext* context,
« no previous file with comments | « third_party/WebKit/Source/modules/eventsource/EventSource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698