Common process code for service workers.
See the main service worker documentation in content/browser/service_worker.