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

Unified Diff: third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
index 7b2b1017d145d0d0abe7b02df07b52a8bcee1f87..6eb4290a758ff32b6b38561f08ef3d31fde52914 100644
--- a/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
@@ -33,8 +33,6 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/SerializedScriptValue.h"
#include "core/dom/ExecutionContextTask.h"
-#include "core/frame/Deprecation.h"
-#include "core/frame/UseCounter.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/origin_trials/OriginTrialContext.h"
#include "core/workers/DedicatedWorkerThread.h"
@@ -100,28 +98,14 @@ void DedicatedWorkerGlobalScope::postMessage(
std::move(channels));
}
-static void countOnDocument(UseCounter::Feature feature,
- ExecutionContext* context) {
- DCHECK(context->isDocument());
- UseCounter::count(context, feature);
-}
-
-static void countDeprecationOnDocument(UseCounter::Feature feature,
- ExecutionContext* context) {
- DCHECK(context->isDocument());
- Deprecation::countDeprecation(context, feature);
-}
-
void DedicatedWorkerGlobalScope::countFeature(
UseCounter::Feature feature) const {
- workerObjectProxy().postTaskToMainExecutionContext(
- createCrossThreadTask(&countOnDocument, feature));
+ workerObjectProxy().countFeature(feature);
}
void DedicatedWorkerGlobalScope::countDeprecation(
UseCounter::Feature feature) const {
- workerObjectProxy().postTaskToMainExecutionContext(
- createCrossThreadTask(&countDeprecationOnDocument, feature));
+ workerObjectProxy().countDeprecation(feature);
}
InProcessWorkerObjectProxy& DedicatedWorkerGlobalScope::workerObjectProxy()
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698