#include "include/cef_auth_callback.h"
#include "include/cef_base.h"
#include "include/cef_request.h"
+#include "include/cef_request_context.h"
#include "include/cef_response.h"
class CefURLRequestClient;
// on the same thread that created it.
///
/*--cef(source=library)--*/
-class CefURLRequest : public virtual CefBase {
+class CefURLRequest : public virtual CefBaseRefCounted {
public:
typedef cef_urlrequest_status_t Status;
typedef cef_errorcode_t ErrorCode;
// would not normally be rendered then the response may receive special
// handling inside the browser (for example, via the file download code path
// instead of the URL request code path). The |request| object will be marked
- // as read-only after calling this method.
+ // as read-only after calling this method. In the browser process if
+ // |request_context| is empty the global request context will be used. In the
+ // render process |request_context| must be empty and the context associated
+ // with the current renderer process' browser will be used.
///
- /*--cef()--*/
+ /*--cef(optional_param=request_context)--*/
static CefRefPtr<CefURLRequest> Create(
CefRefPtr<CefRequest> request,
- CefRefPtr<CefURLRequestClient> client);
+ CefRefPtr<CefURLRequestClient> client,
+ CefRefPtr<CefRequestContext> request_context);
///
// Returns the request object used to create this URL request. The returned
// request unless otherwise documented.
///
/*--cef(source=client)--*/
-class CefURLRequestClient : public virtual CefBase {
+class CefURLRequestClient : public virtual CefBaseRefCounted {
public:
///
// Notifies the client that the request has completed. Use the
///
/*--cef()--*/
virtual void OnUploadProgress(CefRefPtr<CefURLRequest> request,
- uint64 current,
- uint64 total) =0;
+ int64 current,
+ int64 total) =0;
///
// Notifies the client of download progress. |current| denotes the number of
///
/*--cef()--*/
virtual void OnDownloadProgress(CefRefPtr<CefURLRequest> request,
- uint64 current,
- uint64 total) =0;
+ int64 current,
+ int64 total) =0;
///
// Called when some part of the response is read. |data| contains the current