-// Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
+// Copyright (c) 2017 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
#include "include/capi/cef_auth_callback_capi.h"
#include "include/capi/cef_base_capi.h"
#include "include/capi/cef_request_capi.h"
+#include "include/capi/cef_request_context_capi.h"
#include "include/capi/cef_response_capi.h"
#ifdef __cplusplus
///
// Base structure.
///
- cef_base_t base;
+ cef_base_ref_counted_t base;
///
// Returns the request object used to create this URL request. The returned
// 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 function.
+// after calling this function. In the browser process if |request_context| is
+// NULL the global request context will be used. In the render process
+// |request_context| must be NULL and the context associated with the current
+// renderer process' browser will be used.
///
CEF_EXPORT cef_urlrequest_t* cef_urlrequest_create(
- struct _cef_request_t* request, struct _cef_urlrequest_client_t* client);
+ struct _cef_request_t* request, struct _cef_urlrequest_client_t* client,
+ struct _cef_request_context_t* request_context);
///
///
// Base structure.
///
- cef_base_t base;
+ cef_base_ref_counted_t base;
///
// Notifies the client that the request has completed. Use the
// UR_FLAG_REPORT_UPLOAD_PROGRESS flag is set on the request.
///
void (CEF_CALLBACK *on_upload_progress)(struct _cef_urlrequest_client_t* self,
- struct _cef_urlrequest_t* request, uint64 current, uint64 total);
+ struct _cef_urlrequest_t* request, int64 current, int64 total);
///
// Notifies the client of download progress. |current| denotes the number of
///
void (CEF_CALLBACK *on_download_progress)(
struct _cef_urlrequest_client_t* self, struct _cef_urlrequest_t* request,
- uint64 current, uint64 total);
+ int64 current, int64 total);
///
// Called when some part of the response is read. |data| contains the current