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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h

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/InProcessWorkerObjectProxy.h
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h
index 1645e8755ef4075d5eb8b9c39d12904cb87ae5e7..bae8ae051ad2b5590e6bc18f6eb68dd5a0bfd137 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h
@@ -33,6 +33,7 @@
#include "core/CoreExport.h"
#include "core/dom/MessagePort.h"
+#include "core/frame/UseCounter.h"
#include "core/workers/WorkerReportingProxy.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
@@ -43,7 +44,6 @@ namespace blink {
class ConsoleMessage;
class ExecutionContext;
-class ExecutionContextTask;
class InProcessWorkerMessagingProxy;
class WorkerGlobalScope;
class WorkerOrWorkletGlobalScope;
@@ -68,10 +68,14 @@ class CORE_EXPORT InProcessWorkerObjectProxy : public WorkerReportingProxy {
void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>,
std::unique_ptr<MessagePortChannelArray>);
- void postTaskToMainExecutionContext(std::unique_ptr<ExecutionContextTask>);
void confirmMessageFromWorkerObject();
void startPendingActivityTimer();
+ // TODO(nhiroki): Move these to WorkerReportingProxy so that we can reuse them
+ // for other workers and worklets (https://crbug.com/376039, 667357).
+ void countFeature(UseCounter::Feature);
+ void countDeprecation(UseCounter::Feature);
+
// WorkerReportingProxy overrides.
void reportException(const String& errorMessage,
std::unique_ptr<SourceLocation>,

Powered by Google App Engine
This is Rietveld 408576698