Exposing a version of XMLHttpRequest to C++ code
Posted: Mon Jan 31, 2011 5:20 pm
I am interested in adding support for this and just wanted to check if (1) I am blind (this has been done) and (2) would there be any objections to this?
In my specific case I need, for authentication purposes, to have my client issue an HTTP POST request to a website that, for security, will not support CORS.
I plan on exposing this functionality via a class called CefWebUrlRequest and CefWebUrlRequestListener (for callbacks).
Clients can then use this by creating a listener object for their needs and instantiating a CefWebUrlRequest object (like you instantiate XMLHttpRequest).
In looking at the code, it seems the best way to add this is to create my own ResourceLoaderBridge::Peer handler and call ResourceLoaderBridge::Create(request_info_) to initiate this so that it follows the CEF/Chromium threading model.
Advice?
In my specific case I need, for authentication purposes, to have my client issue an HTTP POST request to a website that, for security, will not support CORS.
I plan on exposing this functionality via a class called CefWebUrlRequest and CefWebUrlRequestListener (for callbacks).
Clients can then use this by creating a listener object for their needs and instantiating a CefWebUrlRequest object (like you instantiate XMLHttpRequest).
In looking at the code, it seems the best way to add this is to create my own ResourceLoaderBridge::Peer handler and call ResourceLoaderBridge::Create(request_info_) to initiate this so that it follows the CEF/Chromium threading model.
Advice?