mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Allow custom schemes to cause redirects (issue #98).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@223 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -18,13 +18,15 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefSchemeHandlerCToCpp::ProcessRequest(CefRefPtr<CefRequest> request,
|
||||
CefRefPtr<CefResponse> response, int* response_length)
|
||||
CefString& redirectUrl, CefRefPtr<CefResponse> response,
|
||||
int* response_length)
|
||||
{
|
||||
if(CEF_MEMBER_MISSING(struct_, process_request))
|
||||
return false;
|
||||
|
||||
return struct_->process_request(struct_, CefRequestCppToC::Wrap(request),
|
||||
CefResponseCppToC::Wrap(response), response_length) ? true : false;
|
||||
redirectUrl.GetWritableStruct(), CefResponseCppToC::Wrap(response),
|
||||
response_length) ? true : false;
|
||||
}
|
||||
|
||||
void CefSchemeHandlerCToCpp::Cancel()
|
||||
|
@ -34,7 +34,8 @@ public:
|
||||
|
||||
// CefSchemeHandler methods
|
||||
virtual bool ProcessRequest(CefRefPtr<CefRequest> request,
|
||||
CefRefPtr<CefResponse> response, int* response_length);
|
||||
CefString& redirectUrl, CefRefPtr<CefResponse> response,
|
||||
int* response_length);
|
||||
virtual void Cancel();
|
||||
virtual bool ReadResponse(void* data_out, int bytes_to_read, int* bytes_read);
|
||||
};
|
||||
|
Reference in New Issue
Block a user