Files

28 lines
794 B
Go

//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()
}