diff options
author | fokinv <fokin.valentin@stud.u-szeged.hu> | 2016-03-17 11:57:20 +0100 |
---|---|---|
committer | Attila Dusnoki <dati91@gmail.com> | 2016-05-03 10:17:41 +0200 |
commit | 9825ea41b49e4cff5ccccaef0dbeef9a982d7010 (patch) | |
tree | 965ee08b6168e0657106b58b79f092813dc8a3f4 /components/script/script_thread.rs | |
parent | 9d55748de24fc140302ef4dffefe43acb998c269 (diff) | |
download | servo-9825ea41b49e4cff5ccccaef0dbeef9a982d7010.tar.gz servo-9825ea41b49e4cff5ccccaef0dbeef9a982d7010.zip |
Add Bluetooth IPC support
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 4768273c16e..7070a29c2c4 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -64,6 +64,7 @@ use msg::constellation_msg::{PipelineId, PipelineNamespace}; use msg::constellation_msg::{SubpageId, WindowSizeData, WindowSizeType}; use msg::webdriver_msg::WebDriverScriptCommand; use net_traits::LoadData as NetLoadData; +use net_traits::bluetooth_thread::BluetoothMethodMsg; use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheResult, ImageCacheThread}; use net_traits::storage_thread::StorageThread; use net_traits::{AsyncResponseTarget, ControlMsg, LoadConsumer, LoadContext, Metadata, ResourceThread}; @@ -310,6 +311,8 @@ pub struct ScriptThread { /// A handle to the resource thread. This is an `Arc` to avoid running out of file descriptors if /// there are many iframes. resource_thread: Arc<ResourceThread>, + /// A handle to the bluetooth thread. + bluetooth_thread: IpcSender<BluetoothMethodMsg>, /// A handle to the storage thread. storage_thread: StorageThread, @@ -540,6 +543,7 @@ impl ScriptThread { image_cache_port: image_cache_port, resource_thread: Arc::new(state.resource_thread), + bluetooth_thread: state.bluetooth_thread, storage_thread: state.storage_thread, port: port, @@ -1482,6 +1486,7 @@ impl ScriptThread { self.compositor.borrow_mut().clone(), self.image_cache_thread.clone(), self.resource_thread.clone(), + self.bluetooth_thread.clone(), self.storage_thread.clone(), self.mem_profiler_chan.clone(), self.devtools_chan.clone(), |