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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2507673002: Scheduler: Deprecate CancellableTaskFactory in favor of WebTaskRunner::postCancellableTask (2) (Closed)
Patch Set: address review comments Created 4 years, 1 month 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/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 0bd98bca6d30fa8ac49f065ddad4b715583cedbb..a4aae0c4f202d3135d9832a01dc30e160b345ac3 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -39,6 +39,7 @@
#include "core/html/track/TextTrack.h"
#include "platform/MIMETypeRegistry.h"
#include "platform/Supplementable.h"
+#include "platform/WebTaskRunner.h"
#include "platform/audio/AudioSourceProvider.h"
#include "public/platform/WebAudioSourceProviderClient.h"
#include "public/platform/WebMediaPlayerClient.h"
@@ -655,8 +656,8 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
Member<CueTimeline> m_cueTimeline;
HeapVector<Member<ScriptPromiseResolver>> m_playPromiseResolvers;
- std::unique_ptr<CancellableTaskFactory> m_playPromiseResolveTask;
- std::unique_ptr<CancellableTaskFactory> m_playPromiseRejectTask;
+ TaskHandle m_playPromiseResolveTaskHandle;
+ TaskHandle m_playPromiseRejectTaskHandle;
HeapVector<Member<ScriptPromiseResolver>> m_playPromiseResolveList;
HeapVector<Member<ScriptPromiseResolver>> m_playPromiseRejectList;
ExceptionCode m_playPromiseErrorCode;
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698