diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-04-01 23:33:27 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-04-05 22:43:40 +0800 |
commit | db217d557513030836898f840206d5ac9ed87b79 (patch) | |
tree | b7a6fcb19ad54f6a2304bd7ce2049beda8ee85f6 /components/script_traits/lib.rs | |
parent | 9972aee81f0e80d34157325a5e13b3b1a7ef417a (diff) | |
download | servo-db217d557513030836898f840206d5ac9ed87b79.tar.gz servo-db217d557513030836898f840206d5ac9ed87b79.zip |
allow for a service worker manager per origin
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 9b4588a3cb0..b41cc44d678 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -706,6 +706,13 @@ pub trait ScriptThreadFactory { ) -> (Sender<Self::Message>, Receiver<Self::Message>); } +/// This trait allows creating a `ServiceWorkerManager` without depending on the `script` +/// crate. +pub trait ServiceWorkerManagerFactory { + /// Create a `ServiceWorkerManager`. + fn create(sw_senders: SWManagerSenders, origin: ImmutableOrigin); +} + /// Whether the sandbox attribute is present for an iframe element #[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)] pub enum IFrameSandboxState { |