Example #1
0
        // void (*)(_cef_download_handler_t* self, _cef_browser_t* browser, _cef_download_item_t* download_item, _cef_download_item_callback_t* callback)*
        private static unsafe void OnDownloadUpdatedImpl(cef_download_handler_t *self, cef_browser_t *browser, cef_download_item_t *download_item, cef_download_item_callback_t *callback)
        {
            var instance = GetInstance((IntPtr)self) as CefDownloadHandler;

            if (instance == null || ((ICefDownloadHandlerPrivate)instance).AvoidOnDownloadUpdated())
            {
                ReleaseIfNonNull((cef_base_ref_counted_t *)browser);
                ReleaseIfNonNull((cef_base_ref_counted_t *)download_item);
                ReleaseIfNonNull((cef_base_ref_counted_t *)callback);
                return;
            }
            instance.OnDownloadUpdated(CefBrowser.Wrap(CefBrowser.Create, browser), CefDownloadItem.Wrap(CefDownloadItem.Create, download_item), CefDownloadItemCallback.Wrap(CefDownloadItemCallback.Create, callback));
        }
Example #2
0
 /// <summary>
 /// Called when a download&apos;s status or progress information has been updated.
 /// This may be called multiple times before and after on_before_download().
 /// Execute |callback| either asynchronously or in this function to cancel the
 /// download if desired. Do not keep a reference to |download_item| outside of
 /// this function.
 /// </summary>
 protected internal unsafe virtual void OnDownloadUpdated(CefBrowser browser, CefDownloadItem downloadItem, CefDownloadItemCallback callback)
 {
 }
Example #3
0
 /// <summary>
 /// Called when a download&apos;s status or progress information has been updated.
 /// This may be called multiple times before and after on_before_download().
 /// Execute |callback| either asynchronously or in this function to cancel the
 /// download if desired. Do not keep a reference to |download_item| outside of
 /// this function.
 /// </summary>
 public unsafe virtual void OnDownloadUpdated(CefBrowser browser, CefDownloadItem downloadItem, CefDownloadItemCallback callback)
 {
 }