diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-07-05 12:33:09 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-07-10 13:42:28 +0800 |
commit | 671627e97e20ae4baf728ae6dda61ef6f857c193 (patch) | |
tree | c86d1e568b551613bde1b61bf3db3dee42735a79 /components/script/task_source/networking.rs | |
parent | ce430566cdbccaa86ec498aa48392eab3ec69256 (diff) | |
download | servo-671627e97e20ae4baf728ae6dda61ef6f857c193.tar.gz servo-671627e97e20ae4baf728ae6dda61ef6f857c193.zip |
introduce "per task source" ignoring of tasks
Diffstat (limited to 'components/script/task_source/networking.rs')
-rw-r--r-- | components/script/task_source/networking.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/task_source/networking.rs b/components/script/task_source/networking.rs index ed192d08003..9058f9653e4 100644 --- a/components/script/task_source/networking.rs +++ b/components/script/task_source/networking.rs @@ -5,7 +5,7 @@ use msg::constellation_msg::PipelineId; use script_runtime::{CommonScriptMsg, ScriptChan, ScriptThreadEventCategory}; use task::{TaskCanceller, TaskOnce}; -use task_source::TaskSource; +use task_source::{TaskSource, TaskSourceName}; #[derive(JSTraceable)] pub struct NetworkingTaskSource(pub Box<ScriptChan + Send + 'static>, pub PipelineId); @@ -17,6 +17,8 @@ impl Clone for NetworkingTaskSource { } impl TaskSource for NetworkingTaskSource { + const NAME: TaskSourceName = TaskSourceName::Networking; + fn queue_with_canceller<T>( &self, task: T, |