feat: inspect windows browser process identity

This commit is contained in:
QiuSW
2026-07-22 14:59:57 +08:00
parent 23be05210b
commit d6f6bb0f2c
8 changed files with 370 additions and 3 deletions
@@ -0,0 +1,27 @@
//go:build !windows
package browser
import (
"context"
"chub/internal/domain"
)
type unsupportedProcessInspector struct{}
func NewWindowsProcessInspector() ProcessInspector { return unsupportedProcessInspector{} }
func NewWindowsProfileInspector() ExternalProfileInspector { return unsupportedProfileInspector{} }
func (unsupportedProcessInspector) Inspect(context.Context, int) (ProcessIdentity, error) {
return ProcessIdentity{}, unsupportedError()
}
func (unsupportedProcessInspector) Alive(context.Context, int) (bool, error) {
return false, unsupportedError()
}
type unsupportedProfileInspector struct{}
func (unsupportedProfileInspector) InspectProfile(context.Context, domain.BrowserKind, string, int) (ProfileUse, error) {
return ProfileUse{}, unsupportedError()
}