pub struct UnprivilegedPipelineContent {Show 31 fields
id: PipelineId,
top_level_browsing_context_id: TopLevelBrowsingContextId,
browsing_context_id: BrowsingContextId,
parent_pipeline_id: Option<PipelineId>,
opener: Option<BrowsingContextId>,
namespace_request_sender: IpcSender<PipelineNamespaceRequest>,
script_to_constellation_chan: ScriptToConstellationChan,
background_hang_monitor_to_constellation_chan: IpcSender<HangMonitorAlert>,
bhm_control_port: Option<IpcReceiver<BackgroundHangMonitorControlMsg>>,
layout_to_constellation_chan: IpcSender<LayoutMsg>,
scheduler_chan: IpcSender<TimerSchedulerMsg>,
devtools_ipc_sender: Option<IpcSender<ScriptToDevtoolsControlMsg>>,
bluetooth_thread: IpcSender<BluetoothRequest>,
swmanager_thread: IpcSender<SWManagerMsg>,
system_font_service: SystemFontServiceProxySender,
resource_threads: ResourceThreads,
time_profiler_chan: ProfilerChan,
mem_profiler_chan: ProfilerChan,
window_size: WindowSizeData,
script_chan: IpcSender<ConstellationControlMsg>,
load_data: LoadData,
script_port: IpcReceiver<ConstellationControlMsg>,
opts: Opts,
prefs: HashMap<String, PrefValue>,
pipeline_namespace_id: PipelineNamespaceId,
cross_process_compositor_api: CrossProcessCompositorApi,
webrender_document: DocumentId,
webgl_chan: Option<WebGLPipeline>,
webxr_registry: Option<Registry>,
player_context: WindowGLContext,
user_agent: Cow<'static, str>,
}
Expand description
Creating a new pipeline may require creating a new event loop.
This is the data used to initialize the event loop.
TODO: simplify this, and unify it with InitialPipelineState
if possible.
Fields§
§id: PipelineId
§top_level_browsing_context_id: TopLevelBrowsingContextId
§browsing_context_id: BrowsingContextId
§parent_pipeline_id: Option<PipelineId>
§opener: Option<BrowsingContextId>
§namespace_request_sender: IpcSender<PipelineNamespaceRequest>
§script_to_constellation_chan: ScriptToConstellationChan
§background_hang_monitor_to_constellation_chan: IpcSender<HangMonitorAlert>
§bhm_control_port: Option<IpcReceiver<BackgroundHangMonitorControlMsg>>
§layout_to_constellation_chan: IpcSender<LayoutMsg>
§scheduler_chan: IpcSender<TimerSchedulerMsg>
§devtools_ipc_sender: Option<IpcSender<ScriptToDevtoolsControlMsg>>
§bluetooth_thread: IpcSender<BluetoothRequest>
§swmanager_thread: IpcSender<SWManagerMsg>
§system_font_service: SystemFontServiceProxySender
§resource_threads: ResourceThreads
§time_profiler_chan: ProfilerChan
§mem_profiler_chan: ProfilerChan
§window_size: WindowSizeData
§script_chan: IpcSender<ConstellationControlMsg>
§load_data: LoadData
§script_port: IpcReceiver<ConstellationControlMsg>
§opts: Opts
§prefs: HashMap<String, PrefValue>
§pipeline_namespace_id: PipelineNamespaceId
§cross_process_compositor_api: CrossProcessCompositorApi
§webrender_document: DocumentId
§webgl_chan: Option<WebGLPipeline>
§webxr_registry: Option<Registry>
§player_context: WindowGLContext
§user_agent: Cow<'static, str>
Implementations§
source§impl UnprivilegedPipelineContent
impl UnprivilegedPipelineContent
pub fn start_all<STF: ScriptThreadFactory>( self, wait_for_completion: bool, layout_factory: Arc<dyn LayoutFactory>, background_hang_monitor_register: Box<dyn BackgroundHangMonitorRegister>, )
pub fn spawn_multiprocess(self) -> Result<(), Error>
pub fn register_with_background_hang_monitor( &mut self, ) -> Box<dyn BackgroundHangMonitorRegister>
pub fn script_to_constellation_chan(&self) -> &ScriptToConstellationChan
pub fn opts(&self) -> Opts
pub fn prefs(&self) -> HashMap<String, PrefValue>
Trait Implementations§
source§impl<'de> Deserialize<'de> for UnprivilegedPipelineContent
impl<'de> Deserialize<'de> for UnprivilegedPipelineContent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for UnprivilegedPipelineContent
impl !RefUnwindSafe for UnprivilegedPipelineContent
impl Send for UnprivilegedPipelineContent
impl !Sync for UnprivilegedPipelineContent
impl Unpin for UnprivilegedPipelineContent
impl !UnwindSafe for UnprivilegedPipelineContent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert