Skip to content

Instantly share code, notes, and snippets.

@gterzian
Created April 6, 2020 07:38
Show Gist options
  • Save gterzian/11a71006c63c7bae1fb2469db344d3ed to your computer and use it in GitHub Desktop.
Save gterzian/11a71006c63c7bae1fb2469db344d3ed to your computer and use it in GitHub Desktop.
/// 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