summaryrefslogtreecommitdiffstats
path: root/dom/workers/MessageEventRunnable.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/MessageEventRunnable.h')
-rw-r--r--dom/workers/MessageEventRunnable.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/dom/workers/MessageEventRunnable.h b/dom/workers/MessageEventRunnable.h
index c20efb4c55..45bce9949f 100644
--- a/dom/workers/MessageEventRunnable.h
+++ b/dom/workers/MessageEventRunnable.h
@@ -20,7 +20,21 @@ namespace dom {
class MessageEventRunnable final : public WorkerDebuggeeRunnable,
public StructuredCloneHolder {
public:
- MessageEventRunnable(WorkerPrivate* aWorkerPrivate, Target aTarget);
+ explicit MessageEventRunnable(WorkerPrivate* aWorkerPrivate);
+
+ bool DispatchDOMEvent(JSContext* aCx, WorkerPrivate* aWorkerPrivate,
+ DOMEventTargetHelper* aTarget, bool aIsMainThread);
+
+ private:
+ bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override;
+
+ void DispatchError(JSContext* aCx, DOMEventTargetHelper* aTarget);
+};
+
+class MessageEventToParentRunnable final : public WorkerParentDebuggeeRunnable,
+ public StructuredCloneHolder {
+ public:
+ explicit MessageEventToParentRunnable(WorkerPrivate* aWorkerPrivate);
bool DispatchDOMEvent(JSContext* aCx, WorkerPrivate* aWorkerPrivate,
DOMEventTargetHelper* aTarget, bool aIsMainThread);