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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp

Issue 2535653002: Worker: Deprecate PostTaskToMainExecutionContext (Closed)
Patch Set: 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/workers/ThreadedMessagingProxyBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
index 761007e15498eab930c7b03ae9125e52d5a583a9..31ef92a24fb32b2f0cf65c374de2cd4f1d4aa10e 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
@@ -6,6 +6,7 @@
#include "bindings/core/v8/SourceLocation.h"
#include "core/dom/Document.h"
+#include "core/frame/Deprecation.h"
#include "core/loader/DocumentLoader.h"
#include "core/workers/ParentFrameTaskRunners.h"
#include "core/workers/WorkerInspectorProxy.h"
@@ -78,6 +79,16 @@ void ThreadedMessagingProxyBase::postTaskToLoader(
getExecutionContext()->postTask(location, std::move(task));
}
+void ThreadedMessagingProxyBase::countFeature(UseCounter::Feature feature) {
+ DCHECK(isParentContextThread());
+ UseCounter::count(m_executionContext, feature);
+}
+
+void ThreadedMessagingProxyBase::countDeprecation(UseCounter::Feature feature) {
+ DCHECK(isParentContextThread());
+ Deprecation::countDeprecation(m_executionContext, feature);
+}
+
void ThreadedMessagingProxyBase::reportConsoleMessage(
MessageSource source,
MessageLevel level,

Powered by Google App Engine
This is Rietveld 408576698