Closed Bug 1503834 Opened 6 years ago Closed 6 years ago

[socket-proc] Create PBackground between the socket process socket thread and content process

Categories

(Core :: Networking, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
firefox65 --- affected

People

(Reporter: mayhemer, Assigned: kershaw)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [necko-triaged])

Attachments

(2 obsolete files)

This is one thing we need to deliver to let the WebRTC team use the socket process. Please any bugs this one is blocking.
This is only a backup and example, not an actual base patch to fix this bug! It's half done, currently uncompilable (details follow) What needs to be added: - We must call BackgroundChild::Startup() from SocketProcessImpl::Init (after we init XPCOM) - Add InitBackground message on PSocketProcess parent, see [1][2] as examples - Implement it on SocketProcessParent as [3] [1] https://searchfox.org/mozilla-central/rev/eac6295c397133b7346822ad31867197e30d7e94/dom/ipc/PContent.ipdl#731 [2] https://searchfox.org/mozilla-central/search?q=InitBackground&redirect=false [3] https://searchfox.org/mozilla-central/rev/eac6295c397133b7346822ad31867197e30d7e94/dom/ipc/ContentParent.cpp#3344-3352
Assignee: nobody → honzab.moz
Depends on: 1494585
Reassigning to Kershaw, thanks!
Assignee: honzab.moz → kershaw
QA Whiteboard: [necko-triaged]
Priority: -- → P2
QA Whiteboard: [necko-triaged]
Whiteboard: [necko-triaged]
1. Call a new method ChildImpl::GetOrCreateForSocketProcess to get endpoints. 2. Call SocketProcessBridgeChild::SendInitBackground to send endpoint to SocketProcessBridgeparent. 3. In SocketProcessBridgeParent::RecvInitBackground, alloc the background parent with the endpoint.
I need a bit of time to review this patch. It's big and complex. I'll be able to give something in the next 2 days. Sorry for the delay.
Attachment #9021798 - Attachment is obsolete: true
Blocks: socket-proc-webrtc
No longer blocks: socket-proc
Priority: P2 → P1
Blocks: 1484751
No longer blocks: socket-proc-webrtc
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Attachment #9023579 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: