Add Websocket task source

According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network

The task source for all tasks queued in the websocket section are the
websocket task source, so this commit also updates those references to
use the appropriate one.
This commit is contained in:
Agustin Chiappe Berrini 2018-09-08 17:01:27 -04:00
parent f7630dad87
commit 5dd6e21c2e
7 changed files with 82 additions and 13 deletions

View file

@ -10,6 +10,7 @@ pub mod networking;
pub mod performance_timeline;
pub mod remote_event;
pub mod user_interaction;
pub mod websocket;
use dom::globalscope::GlobalScope;
use enum_iterator::IntoEnumIterator;
@ -28,7 +29,8 @@ pub enum TaskSourceName {
Networking,
PerformanceTimeline,
UserInteraction,
RemoteEvent
RemoteEvent,
Websocket,
}
impl TaskSourceName {