Module chromium
Expand description
Chromium helper transport, independent of native CEF build dependencies.
Modules§
Structs§
- Chromium
Engine - A real Chromium process. Initialization errors are returned to the caller; this type never creates a simulated engine or weakens Chromium’s sandbox.
- Unavailable
Engine - Error-only surface used when the engine is not installed or cannot start. It never renders a page and answers navigation with its message, which is written for the person using the app.
Constants§
- PRIVATE_
ROOT_ HELPER - The engine helper’s pid, written once it runs inside the root.
- PRIVATE_
ROOT_ LOCK - Writers hold this file shared and cleanup holds it exclusive.
- PRIVATE_
ROOT_ MARKER - PRIVATE_
ROOT_ MARKER_ CONTENT - PRIVATE_
ROOT_ PREFIX - A private window’s disposable root is a temp directory named with this
prefix that holds
PRIVATE_ROOT_MARKERreadingPRIVATE_ROOT_MARKER_CONTENT; only such a root is ever removed.
Functions§
- is_
owned_ private_ root - Whether
rootis a private window root Browser allocated: a real directory with the prefix and an intact marker, never a symlink. - release_
private_ root - Remove a private window’s disposable root that no engine will use, if it is one Browser owns.
- serve_
shared_ until_ idle - Blocks while other Browser processes still use a Chromium host this process runs, then stops serving them; a host none of this process’s engines still uses shuts down before this returns.