mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Moves HSTS includeSubdomains enum to net_traits
This commit is contained in:
parent
82cafc4274
commit
bae979137a
5 changed files with 49 additions and 38 deletions
|
@ -119,6 +119,12 @@ pub enum LoadConsumer {
|
|||
/// Handle to a resource task
|
||||
pub type ResourceTask = Sender<ControlMsg>;
|
||||
|
||||
#[derive(PartialEq, Copy, Clone)]
|
||||
pub enum IncludeSubdomains {
|
||||
Included,
|
||||
NotIncluded
|
||||
}
|
||||
|
||||
pub enum ControlMsg {
|
||||
/// Request the data associated with a particular URL
|
||||
Load(LoadData, LoadConsumer),
|
||||
|
@ -127,7 +133,7 @@ pub enum ControlMsg {
|
|||
/// Retrieve the stored cookies for a given URL
|
||||
GetCookiesForUrl(Url, Sender<Option<String>>, CookieSource),
|
||||
/// Store a domain's STS information
|
||||
SetHSTSEntryForHost(String, bool, Option<u64>),
|
||||
SetHSTSEntryForHost(String, IncludeSubdomains, Option<u64>),
|
||||
Exit
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue