]> git.sesse.net Git - casparcg/blobdiff - dependencies64/cef/linux/include/cef_urlrequest.h
Upgrade CEF to 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81.
[casparcg] / dependencies64 / cef / linux / include / cef_urlrequest.h
similarity index 89%
rename from dependencies64/cef/include/cef_urlrequest.h
rename to dependencies64/cef/linux/include/cef_urlrequest.h
index 02a9da68436f410f1c2572b67fd4ae1e6a0e317b..23bc821ec3e904d0aa554a42d8363e958da3d95d 100644 (file)
@@ -41,6 +41,7 @@
 #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;
@@ -53,7 +54,7 @@ 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;
@@ -68,12 +69,16 @@ class CefURLRequest : public virtual CefBase {
   // 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
@@ -122,7 +127,7 @@ class CefURLRequest : public virtual CefBase {
 // 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
@@ -140,8 +145,8 @@ class CefURLRequestClient : public virtual CefBase {
   ///
   /*--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
@@ -150,8 +155,8 @@ class CefURLRequestClient : public virtual CefBase {
   ///
   /*--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