summaryrefslogtreecommitdiff
path: root/dom/workers/SharedWorker.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/SharedWorker.h')
-rw-r--r--dom/workers/SharedWorker.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/dom/workers/SharedWorker.h b/dom/workers/SharedWorker.h
index 4820b4e7c1..e85fc2609a 100644
--- a/dom/workers/SharedWorker.h
+++ b/dom/workers/SharedWorker.h
@@ -94,8 +94,15 @@ private:
// Only called by MessagePort.
void
- PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage,
- const Optional<Sequence<JS::Value>>& aTransferable,
+ PostMessage(JSContext* aCx,
+ JS::Handle<JS::Value> aMessage,
+ const Sequence<JSObject*>& aTransferable,
+ ErrorResult& aRv);
+
+ void
+ PostMessage(JSContext* aCx,
+ JS::Handle<JS::Value> aMessage,
+ const StructuredSerializeOptions& aOptions,
ErrorResult& aRv);
};