Created
April 6, 2020 07:38
-
-
Save gterzian/11a71006c63c7bae1fb2469db344d3ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Content process entry point. | |
pub fn run_content_process(token: String) { | |
let (unprivileged_content_sender, unprivileged_content_receiver) = | |
ipc::channel::<UnprivilegedContent>().unwrap(); | |
let connection_bootstrap: IpcSender<IpcSender<UnprivilegedContent>> = | |
IpcSender::connect(token).unwrap(); | |
connection_bootstrap | |
.send(unprivileged_content_sender) | |
.unwrap(); | |
let unprivileged_content = unprivileged_content_receiver.recv().unwrap(); | |
unprivileged_content.start_all(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment