mirror of
https://github.com/lexmount/moli.git
synced 2026-11-25 08:02:28 +00:00
Add opt-in ace-protocol support with AcePageTask and PageExtensionHost for renderer-owner-thread inspection, native input, and screenshots. Expose BrowserRuntimeHandle through a runtime-ready callback so embedders can discover targets and submit tasks without CDP request/response envelopes. Reuse supervised page workflows for output ordering, input effects, and target/document lifetime checks. Recover lost waiters without replaying admitted tasks, and revoke runtime access on browser shutdown.
46 lines
2.2 KiB
Rust
46 lines
2.2 KiB
Rust
//! Stable facade crate for Moli.
|
|
//!
|
|
//! This crate is the public entry point for browser runtime APIs such as
|
|
//! `runtime`, `page`, `network`, and `protocol_types`, while the heavier
|
|
//! implementation now lives in the split internal crates.
|
|
|
|
mod config;
|
|
mod dom;
|
|
pub mod network;
|
|
pub mod page;
|
|
mod parser;
|
|
mod renderer;
|
|
pub mod runtime;
|
|
mod selector;
|
|
pub mod storage;
|
|
#[doc(hidden)]
|
|
pub mod testing;
|
|
|
|
pub use moli_page_types as protocol_types;
|
|
pub use moli_page_types::{LayoutConfiguration, LayoutPolicy, OptionalResourceFetchMask};
|
|
pub use moli_renderer_v8::ProcessEnvironmentOwner;
|
|
pub use moli_renderer_v8::renderer_output_transport_channel;
|
|
pub use moli_renderer_v8::{
|
|
PageId, RendererBrowserContextRuntimeId, RendererCdpCall, RendererDocumentLifecycleIdentity,
|
|
RendererDocumentTitleChanged, RendererNativeCommandReadyResponse,
|
|
RendererNativeCommandResponseGuard, RendererNativeCommandTerminal, RendererNativeOperation,
|
|
RendererNativeOperationStep, RendererNativeProtocolError, RendererNativeProtocolNotification,
|
|
RendererNativeProtocolResponse, RendererNativeProtocolStateUpdate, RendererOutputCursor,
|
|
RendererOutputFence, RendererOutputFenceLeaseId, RendererOutputItem, RendererOutputPublication,
|
|
RendererOutputPublicationOrdering, RendererOutputRecord, RendererOutputResidenceIdentity,
|
|
RendererOutputStreamCloseReason, RendererOutputStreamControl, RendererOutputStreamEpoch,
|
|
RendererOutputStreamIdentity, RendererOutputTransportDiagnostics,
|
|
RendererOutputTransportMessage, RendererOutputTransportReceiver,
|
|
RendererOutputTransportSendError, RendererOutputTransportSender, RendererOwnerAction,
|
|
RendererOwnerLocalHostId, RendererOwnerResourceActivitySource,
|
|
RendererOwnerRuntimeActivitySource, RendererProtocolObservation,
|
|
RendererRuntimeCommandCausalIdentity, RendererRuntimeInspectorAsyncCompletion,
|
|
RendererRuntimeInspectorResponseChannel, RendererRuntimeInspectorResponseSender,
|
|
RendererRuntimeRemoteObjectResolution,
|
|
};
|
|
pub use moli_renderer_v8::{RendererPageAccessError, RendererPageCommand, RendererPageReply};
|
|
|
|
/// ACE page tasks executed on the renderer owner thread.
|
|
#[cfg(feature = "ace-protocol")]
|
|
pub use moli_renderer_v8::ace_page_task;
|