diff options
author | Rahul Sharma <rsconceptx@gmail.com> | 2016-07-18 19:06:48 +0530 |
---|---|---|
committer | Rahul Sharma <rsconceptx@gmail.com> | 2016-07-18 19:06:48 +0530 |
commit | eff3e01df0581e9ee3dc827dd13e86202b66752a (patch) | |
tree | 7a45fa70889db4bae84d6b1e72af8b4f7f1b7915 /components/script/lib.rs | |
parent | 1e6293ea1d06120c9f3488d7d32c24d8d92df6b1 (diff) | |
download | servo-eff3e01df0581e9ee3dc827dd13e86202b66752a.tar.gz servo-eff3e01df0581e9ee3dc827dd13e86202b66752a.zip |
make resource_thread talk to sw-manager
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r-- | components/script/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs index 604e3770176..78a84f83586 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -114,9 +114,8 @@ mod unpremultiplytable; mod webdriver_handlers; use dom::bindings::codegen::RegisterBindings; -use ipc_channel::ipc::IpcSender; use js::jsapi::{Handle, JSContext, JSObject, SetDOMProxyInformation}; -use script_traits::SWManagerMsg; +use script_traits::SWManagerSenders; use serviceworker_manager::ServiceWorkerManager; use std::ptr; use util::opts; @@ -163,13 +162,13 @@ fn perform_platform_specific_initialization() { fn perform_platform_specific_initialization() {} #[allow(unsafe_code)] -pub fn init(from_swmanager_sender: IpcSender<SWManagerMsg>) { +pub fn init(sw_senders: SWManagerSenders) { unsafe { SetDOMProxyInformation(ptr::null(), 0, Some(script_thread::shadow_check_callback)); } // Spawn the service worker manager passing the constellation sender - ServiceWorkerManager::spawn_manager(from_swmanager_sender); + ServiceWorkerManager::spawn_manager(sw_senders); // Create the global vtables used by the (generated) DOM // bindings to implement JS proxies. |