mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
refactor(resourcethread): expose constellationmsg channel
This commit is contained in:
parent
d1378d6bad
commit
1c465bcd66
5 changed files with 19 additions and 9 deletions
|
@ -457,7 +457,7 @@ fn create_constellation(user_agent: Cow<'static, str>,
|
|||
-> (Sender<ConstellationMsg>, SWManagerSenders) {
|
||||
let bluetooth_thread: IpcSender<BluetoothRequest> = BluetoothThreadFactory::new(embedder_proxy.clone());
|
||||
|
||||
let (public_resource_threads, private_resource_threads) =
|
||||
let (public_resource_threads, private_resource_threads, resource_constellation_sender) =
|
||||
new_resource_threads(user_agent,
|
||||
devtools_chan.clone(),
|
||||
time_profiler_chan.clone(),
|
||||
|
@ -533,6 +533,8 @@ fn create_constellation(user_agent: Cow<'static, str>,
|
|||
webvr_constellation_sender.send(constellation_chan.clone()).unwrap();
|
||||
}
|
||||
|
||||
resource_constellation_sender.send(constellation_chan.clone()).unwrap();
|
||||
|
||||
// channels to communicate with Service Worker Manager
|
||||
let sw_senders = SWManagerSenders {
|
||||
swmanager_sender: from_swmanager_sender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue