chromium

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveSource added in v1.1.0

type ArchiveSource struct {
	AbsPath   string
	LayoutRel string
	IsDir     bool
}

ArchiveSource is one decryption-relevant file or directory plus its path inside the browser's User Data tree (forward-slash), so an archive can be re-expanded into a working profile layout.

type Browser added in v0.5.0

type Browser struct {
	// contains filtered or unexported fields
}

Browser is one Chromium installation: a single UserDataDir holding profiles that share a master key. The key is derived once and reused across profiles.

func NewBrowser added in v1.1.0

func NewBrowser(cfg types.BrowserConfig) (*Browser, error)

NewBrowser discovers the profiles under cfg.UserDataDir, or returns nil if none resolve. Call SetRetrievers before Extract to enable decryption.

func (*Browser) ArchiveSources added in v1.1.0

func (b *Browser) ArchiveSources(categories []types.Category) []ArchiveSource

ArchiveSources lists the files an archive must capture for the given categories: the User Data root files (Local State), every resolved category source per profile, plus each profile's Preferences marker so a restore can rediscover the profile. LayoutRel is forward-slash, relative to the root.

func (*Browser) BrowserKey added in v1.1.0

func (b *Browser) BrowserKey() string

func (*Browser) BrowserName added in v0.5.0

func (b *Browser) BrowserName() string

func (*Browser) CountEntries added in v0.5.0

func (b *Browser) CountEntries(categories []types.Category) ([]types.CountResult, error)

CountEntries counts entries per category for every profile without decryption.

func (*Browser) ExportKeys added in v1.1.0

func (b *Browser) ExportKeys() (masterkey.MasterKeys, error)

ExportKeys derives the master keys without extracting. Returns the tiers that succeeded plus a joined error for those that failed — partial results matter (a v20-only failure keeps the v10 key).

func (*Browser) Extract added in v0.5.0

func (b *Browser) Extract(categories []types.Category) ([]types.ExtractResult, error)

Extract derives the installation's master key once, then extracts every profile.

func (*Browser) Kind added in v1.1.0

func (b *Browser) Kind() types.BrowserKind

func (*Browser) Profiles added in v1.1.0

func (b *Browser) Profiles() []types.Profile

Profiles returns the identity of every profile in this installation.

func (*Browser) SetRetrievers added in v1.1.0

func (b *Browser) SetRetrievers(r masterkey.Retrievers)

SetRetrievers wires the per-tier master-key retrievers (V10/V11/V20) used by Extract; unused tiers stay nil.

func (*Browser) UserDataDir added in v1.1.0

func (b *Browser) UserDataDir() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL