mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add the ability to observe and modify resource redirects (issue #346).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@416 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -1274,6 +1274,16 @@ public:
|
||||
CefRefPtr<CefResponse> response,
|
||||
int loadFlags) { return false; }
|
||||
|
||||
///
|
||||
// Called on the IO thread when a resource load is redirected. The |old_url|
|
||||
// parameter will contain the old URL. The |new_url| parameter will contain
|
||||
// the new URL and can be changed if desired.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void OnResourceRedirect(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& old_url,
|
||||
CefString& new_url) {}
|
||||
|
||||
///
|
||||
// Called on the UI thread after a response to the resource request is
|
||||
// received. Set |filter| if response content needs to be monitored and/or
|
||||
|
@@ -1100,6 +1100,15 @@ typedef struct _cef_request_handler_t
|
||||
struct _cef_stream_reader_t** resourceStream,
|
||||
struct _cef_response_t* response, int loadFlags);
|
||||
|
||||
///
|
||||
// Called on the IO thread when a resource load is redirected. The |old_url|
|
||||
// parameter will contain the old URL. The |new_url| parameter will contain
|
||||
// the new URL and can be changed if desired.
|
||||
///
|
||||
void (CEF_CALLBACK *on_resource_redirect)(struct _cef_request_handler_t* self,
|
||||
struct _cef_browser_t* browser, const cef_string_t* old_url,
|
||||
cef_string_t* new_url);
|
||||
|
||||
///
|
||||
// Called on the UI thread after a response to the resource request is
|
||||
// received. Set |filter| if response content needs to be monitored and/or
|
||||
|
Reference in New Issue
Block a user