Skip to content

Instantly share code, notes, and snippets.

@gterzian
Last active April 8, 2020 14:32
Show Gist options
  • Save gterzian/33f90e6be931e48b1000c9fcddae440d to your computer and use it in GitHub Desktop.
Save gterzian/33f90e6be931e48b1000c9fcddae440d to your computer and use it in GitHub Desktop.
/// Content process entry point.
pub fn run_content_process(token: String) {
// Same stuff as before here...
let unprivileged_content = unprivileged_content_receiver.recv().unwrap();
match unprivileged_content {
UnprivilegedContent::Pipeline(mut content) => {
content.start_all();
},
UnprivilegedContent::ServiceWorker(content) => {
content.start();
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment