Added support for synchronization along with an unit test for cancellation listener

This commit is contained in:
Ravi Shankar 2015-11-07 20:44:12 +05:30
parent 10f5584f78
commit c4cf72db6e
3 changed files with 59 additions and 0 deletions

View file

@ -234,6 +234,8 @@ pub enum ControlMsg {
GetCookiesForUrl(Url, IpcSender<Option<String>>, CookieSource),
/// Cancel a network request corresponding to a given `ResourceId`
Cancel(ResourceId),
/// Synchronization message solely for knowing the state of the ResourceChannelManager loop
Synchronize(IpcSender<()>),
/// Break the load handler loop and exit
Exit,
}