Exemplo n.º 1
0
func (reqH *myRequestHandler) OnBeforeBrowse(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, request cef2go.CefRequestT, isRedirect int) int {
	defer browser.Release()
	defer frame.Release()
	defer request.Release()
	log.Println("Before browse: ", request.GetUrl())
	return 0
}
Exemplo n.º 2
0
func (reqH *myRequestHandler) OnBeforeResourceLoad(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, request cef2go.CefRequestT) int {
	defer browser.Release()
	defer frame.Release()
	defer request.Release()
	return 0
}