The description of the OnResourceResponse method says that:
WARNING: Redirecting using this method is deprecated. use
OnBeforeResourceLoad or GetResourceHandler to perform redirects.
But, how can OnBeforeResourceLoad or GetResourceHandler - be a replacement for OnResourceResponse if there is no object in their Incoming parameters - CefRefPtr<CefResponse> response ?