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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp

Issue 2643993004: Move MediaKeySession timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Move MediaKeySession timer to frame-specific TaskRunnerTimer. 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/encryptedmedia/MediaKeySession.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/encryptedmedia/MediaKeySession.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
index ec57adb2d1bcfa4d4735e132f89ff9e7728e7b3a..46f28d63894b5c71ca8646dadd8e09f176c96f14 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
@@ -33,6 +33,7 @@
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMException.h"
#include "core/dom/ExceptionCode.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/events/GenericEventQueue.h"
#include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h"
@@ -374,7 +375,10 @@ MediaKeySession::MediaKeySession(ScriptState* scriptState,
m_closedPromise(new ClosedPromise(scriptState->getExecutionContext(),
this,
ClosedPromise::Closed)),
- m_actionTimer(this, &MediaKeySession::actionTimerFired) {
+ m_actionTimer(
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState),
+ this,
+ &MediaKeySession::actionTimerFired) {
DVLOG(MEDIA_KEY_SESSION_LOG_LEVEL) << __func__ << "(" << this << ")";
InstanceCounters::incrementCounter(InstanceCounters::MediaKeySessionCounter);
« no previous file with comments | « third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698