]> git.sesse.net Git - casparcg/blobdiff - dependencies64/cef/linux/include/capi/cef_urlrequest_capi.h
Upgrade CEF to 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81.
[casparcg] / dependencies64 / cef / linux / include / capi / cef_urlrequest_capi.h
similarity index 92%
rename from dependencies64/cef/include/capi/cef_urlrequest_capi.h
rename to dependencies64/cef/linux/include/capi/cef_urlrequest_capi.h
index b396aa67d4aac10903bb145956a78374a408cdd8..02a5063d0afbd14d991d3cbe69b4b1c0a9c98e81 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -41,6 +41,7 @@
 #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
@@ -60,7 +61,7 @@ typedef struct _cef_urlrequest_t {
   ///
   // Base structure.
   ///
-  cef_base_t base;
+  cef_base_ref_counted_t base;
 
   ///
   // Returns the request object used to create this URL request. The returned
@@ -113,10 +114,14 @@ typedef struct _cef_urlrequest_t {
 // 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);
 
 
 ///
@@ -128,7 +133,7 @@ typedef struct _cef_urlrequest_client_t {
   ///
   // Base structure.
   ///
-  cef_base_t base;
+  cef_base_ref_counted_t base;
 
   ///
   // Notifies the client that the request has completed. Use the
@@ -146,7 +151,7 @@ typedef struct _cef_urlrequest_client_t {
   // 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
@@ -155,7 +160,7 @@ typedef struct _cef_urlrequest_client_t {
   ///
   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