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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2856773003: Remove deprecated ExecutionContextTask (Closed)
Patch Set: restore private / rebase Created 3 years, 6 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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 071ff8f9a928767f6c2c6724e99e7db0e5c0c96a..ff4bf9a2741cf9bc1748f99e20f21ab33d2da48a 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -79,7 +79,6 @@
#include "core/dom/ElementRegistrationOptions.h"
#include "core/dom/ElementTraversal.h"
#include "core/dom/ExceptionCode.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/dom/FrameRequestCallback.h"
#include "core/dom/IntersectionObserverController.h"
#include "core/dom/LayoutTreeBuilderTraversal.h"
@@ -216,6 +215,7 @@
#include "core/timing/Performance.h"
#include "core/workers/SharedWorkerRepositoryClient.h"
#include "core/xml/parser/XMLDocumentParser.h"
+#include "platform/CrossThreadFunctional.h"
#include "platform/DateComponents.h"
#include "platform/EventDispatchForbiddenScope.h"
#include "platform/Histogram.h"
@@ -4632,13 +4632,6 @@ void Document::SendSensitiveInputVisibilityInternal() {
sensitive_input_service_ptr->AllPasswordFieldsInInsecureContextInvisible();
}
-void Document::RunExecutionContextTask(
- std::unique_ptr<ExecutionContextTask> task,
- bool is_instrumented) {
- probe::AsyncTask async_task(this, task.get(), nullptr, is_instrumented);
- task->PerformTask(this);
-}
-
void Document::RegisterEventFactory(
std::unique_ptr<EventFactoryBase> event_factory) {
DCHECK(!EventFactories().Contains(event_factory.get()));
@@ -6045,22 +6038,6 @@ void Document::AddConsoleMessage(ConsoleMessage* console_message) {
frame_->Console().AddMessage(console_message);
}
-void Document::PostTask(TaskType task_type,
- const WebTraceLocation& location,
- std::unique_ptr<ExecutionContextTask> task,
- const String& task_name_for_instrumentation) {
- if (!task_name_for_instrumentation.IsEmpty()) {
- probe::AsyncTaskScheduled(this, task_name_for_instrumentation, task.get());
- }
-
- TaskRunnerHelper::Get(task_type, this)
- ->PostTask(location,
- CrossThreadBind(&Document::RunExecutionContextTask,
- WrapCrossThreadWeakPersistent(this),
- WTF::Passed(std::move(task)),
- !task_name_for_instrumentation.IsEmpty()));
-}
-
void Document::TasksWereSuspended() {
GetScriptRunner()->Suspend();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698