mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script: Limit public exports. (#34915)
* script: Restrict reexport visibility of DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Mass pub->pub(crate) conversion. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Hide existing dead code warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix unit tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * More formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
f220d6d3a5
commit
c94d909a86
585 changed files with 5411 additions and 5013 deletions
|
@ -52,7 +52,7 @@ use crate::task_queue::{QueuedTask, QueuedTaskConversion, TaskQueue};
|
|||
use crate::task_source::TaskSourceName;
|
||||
|
||||
/// Messages used to control service worker event loop
|
||||
pub enum ServiceWorkerScriptMsg {
|
||||
pub(crate) enum ServiceWorkerScriptMsg {
|
||||
/// Message common to all workers
|
||||
CommonWorker(WorkerScriptMsg),
|
||||
/// Message to request a custom response by the service worker
|
||||
|
@ -116,12 +116,12 @@ impl QueuedTaskConversion for ServiceWorkerScriptMsg {
|
|||
}
|
||||
|
||||
/// Messages sent from the owning registration.
|
||||
pub enum ServiceWorkerControlMsg {
|
||||
pub(crate) enum ServiceWorkerControlMsg {
|
||||
/// Shutdown.
|
||||
Exit,
|
||||
}
|
||||
|
||||
pub enum MixedMessage {
|
||||
pub(crate) enum MixedMessage {
|
||||
ServiceWorker(ServiceWorkerScriptMsg),
|
||||
Devtools(DevtoolScriptControlMsg),
|
||||
Control(ServiceWorkerControlMsg),
|
||||
|
@ -129,7 +129,7 @@ pub enum MixedMessage {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
pub struct ServiceWorkerGlobalScope {
|
||||
pub(crate) struct ServiceWorkerGlobalScope {
|
||||
workerglobalscope: WorkerGlobalScope,
|
||||
|
||||
#[ignore_malloc_size_of = "Defined in std"]
|
||||
|
@ -235,7 +235,7 @@ impl ServiceWorkerGlobalScope {
|
|||
}
|
||||
|
||||
#[allow(unsafe_code, clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
pub(crate) fn new(
|
||||
init: WorkerGlobalScopeInit,
|
||||
worker_url: ServoUrl,
|
||||
from_devtools_receiver: Receiver<DevtoolScriptControlMsg>,
|
||||
|
@ -267,7 +267,7 @@ impl ServiceWorkerGlobalScope {
|
|||
|
||||
/// <https://w3c.github.io/ServiceWorker/#run-service-worker-algorithm>
|
||||
#[allow(unsafe_code, clippy::too_many_arguments)]
|
||||
pub fn run_serviceworker_scope(
|
||||
pub(crate) fn run_serviceworker_scope(
|
||||
scope_things: ScopeThings,
|
||||
own_sender: Sender<ServiceWorkerScriptMsg>,
|
||||
receiver: Receiver<ServiceWorkerScriptMsg>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue