feat: inspect windows browser process identity
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user