mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibWeb+WebWorker: Implement a first cut of post_message for Workers
This implementation completely ignores MessagePorts, and manually plumbs data through LocalSockets.
This commit is contained in:
parent
05ec93e276
commit
1602663b9e
15 changed files with 225 additions and 29 deletions
|
@ -15,7 +15,7 @@ namespace WebWorker {
|
|||
|
||||
class DedicatedWorkerHost : public RefCounted<DedicatedWorkerHost> {
|
||||
public:
|
||||
explicit DedicatedWorkerHost(Web::Page&, AK::URL url, String type);
|
||||
explicit DedicatedWorkerHost(Web::Page&, AK::URL url, String type, int outside_port);
|
||||
~DedicatedWorkerHost();
|
||||
|
||||
void run();
|
||||
|
@ -26,6 +26,8 @@ private:
|
|||
|
||||
AK::URL m_url;
|
||||
String m_type;
|
||||
|
||||
int m_outside_port { -1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue