Skip to content

Create a new interface and expose it to allow clients to use internal… #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions route.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ import (
"strings"
)

type Redirecter interface {
Redirect(url string) error
}

type routeImpl struct {
channelOwner
handling *chan bool
context *browserContextImpl
didThrow bool
}

func (r *routeImpl) Redirect(url string) error {
return r.redirectedNavigationRequest(url)
}

func (r *routeImpl) startHandling() chan bool {
r.Lock()
defer r.Unlock()
Expand Down